Home | History | Annotate | Download | only in policy
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_
      6 #define CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_
      7 #pragma once
      8 
      9 #include "base/observer_list.h"
     10 #include "chrome/browser/policy/configuration_policy_provider.h"
     11 
     12 namespace policy {
     13 
     14 class ConfigurationPolicyStoreInterface;
     15 
     16 class DummyConfigurationPolicyProvider : public ConfigurationPolicyProvider {
     17  public:
     18   explicit DummyConfigurationPolicyProvider(
     19       const PolicyDefinitionList* policy_list);
     20   virtual ~DummyConfigurationPolicyProvider();
     21 
     22   virtual bool Provide(ConfigurationPolicyStoreInterface* store);
     23 
     24  private:
     25   // ConfigurationPolicyProvider overrides:
     26   virtual void AddObserver(ConfigurationPolicyProvider::Observer* observer);
     27   virtual void RemoveObserver(ConfigurationPolicyProvider::Observer* observer);
     28 
     29   ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_;
     30 
     31   DISALLOW_COPY_AND_ASSIGN(DummyConfigurationPolicyProvider);
     32 };
     33 
     34 }  // namespace policy
     35 
     36 #endif  // CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_
     37