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

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

Issue 8467011: Include only policy definitions that apply to the platfrom in the policy definition list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed dead declarations. Created 9 years, 1 month 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 19 matching lines...) Expand all
30 30
31 virtual DictionaryValue* Load() = 0; 31 virtual DictionaryValue* Load() = 0;
32 }; 32 };
33 33
34 // Assumes ownership of |loader|. 34 // Assumes ownership of |loader|.
35 AsynchronousPolicyProvider( 35 AsynchronousPolicyProvider(
36 const PolicyDefinitionList* policy_list, 36 const PolicyDefinitionList* policy_list,
37 scoped_refptr<AsynchronousPolicyLoader> loader); 37 scoped_refptr<AsynchronousPolicyLoader> loader);
38 virtual ~AsynchronousPolicyProvider(); 38 virtual ~AsynchronousPolicyProvider();
39 39
40 // Force a policy reload from the underlying data source.
41 void ForceReload();
42
43 protected:
40 // ConfigurationPolicyProvider implementation. 44 // ConfigurationPolicyProvider implementation.
41 virtual bool ProvideInternal(PolicyMap* map) OVERRIDE; 45 virtual bool ProvideInternal(PolicyMap* map) OVERRIDE;
42 46
43 // For tests to trigger reloads.
44 scoped_refptr<AsynchronousPolicyLoader> loader();
45
46 protected:
47 // The loader object used internally. 47 // The loader object used internally.
48 scoped_refptr<AsynchronousPolicyLoader> loader_; 48 scoped_refptr<AsynchronousPolicyLoader> loader_;
49 49
50 private: 50 private:
51 DISALLOW_COPY_AND_ASSIGN(AsynchronousPolicyProvider); 51 DISALLOW_COPY_AND_ASSIGN(AsynchronousPolicyProvider);
52 }; 52 };
53 53
54 } // namespace policy 54 } // namespace policy
55 55
56 #endif // CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_ 56 #endif // CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_loader_unittest.cc ('k') | chrome/browser/policy/asynchronous_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698