Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/browser/policy/dummy_cloud_policy_provider.h

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_test include breakage Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_CLOUD_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_
7 #pragma once
8
9 #include "chrome/browser/policy/cloud_policy_provider.h"
10
11 namespace policy {
12
13 // A cloud policy provider for tests, that provides 0 policies, but always
14 // reports that it is initialized.
15 class DummyCloudPolicyProvider : public CloudPolicyProvider {
16 public:
17 explicit DummyCloudPolicyProvider(const PolicyDefinitionList* policy_list);
18 virtual ~DummyCloudPolicyProvider();
19
20 // CloudPolicyProvider overrides:
21 virtual void AppendCache(CloudPolicyCacheBase* cache) OVERRIDE;
22 virtual void PrependCache(CloudPolicyCacheBase* cache) OVERRIDE;
23
24 virtual bool Provide(ConfigurationPolicyStoreInterface* store);
25
26 private:
27 // ConfigurationPolicyProvider overrides:
28 virtual void AddObserver(
29 ConfigurationPolicyProvider::Observer* observer) OVERRIDE;
30 virtual void RemoveObserver(
31 ConfigurationPolicyProvider::Observer* observer) OVERRIDE;
32
33 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_;
34
35 DISALLOW_COPY_AND_ASSIGN(DummyCloudPolicyProvider);
36 };
37
38 } // namespace policy
39
40 #endif // CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_policy_cache.cc ('k') | chrome/browser/policy/dummy_cloud_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698