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

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

Issue 10545033: Removed the PolicyDefinitionList from the ConfigurationPolicyProvider interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/policy/async_policy_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ASYNC_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class AsyncPolicyLoader; 22 class AsyncPolicyLoader;
23 class PolicyBundle; 23 class PolicyBundle;
24 24
25 // A policy provider that loads its policies asynchronously on the FILE thread. 25 // A policy provider that loads its policies asynchronously on the FILE thread.
26 // Platform-specific providers are created by passing an implementation of 26 // Platform-specific providers are created by passing an implementation of
27 // AsyncPolicyLoader to a new AsyncPolicyProvider. 27 // AsyncPolicyLoader to a new AsyncPolicyProvider.
28 class AsyncPolicyProvider : public ConfigurationPolicyProvider, 28 class AsyncPolicyProvider : public ConfigurationPolicyProvider,
29 public base::NonThreadSafe { 29 public base::NonThreadSafe {
30 public: 30 public:
31 AsyncPolicyProvider(const PolicyDefinitionList* policy_list, 31 explicit AsyncPolicyProvider(scoped_ptr<AsyncPolicyLoader> loader);
32 scoped_ptr<AsyncPolicyLoader> loader);
33 virtual ~AsyncPolicyProvider(); 32 virtual ~AsyncPolicyProvider();
34 33
35 // ConfigurationPolicyProvider implementation. 34 // ConfigurationPolicyProvider implementation.
36 virtual void RefreshPolicies() OVERRIDE; 35 virtual void RefreshPolicies() OVERRIDE;
37 36
38 private: 37 private:
39 // Resumes initialization once the loops are spinning. 38 // Resumes initialization once the loops are spinning.
40 void InitWithLoopsReady(); 39 void InitWithLoopsReady();
41 40
42 // Helper for RefreshPolicies(). 41 // Helper for RefreshPolicies().
(...skipping 21 matching lines...) Expand all
64 // Callback used to synchronize RefreshPolicies() calls with the FILE thread. 63 // Callback used to synchronize RefreshPolicies() calls with the FILE thread.
65 // See the implementation for the details. 64 // See the implementation for the details.
66 base::CancelableClosure refresh_callback_; 65 base::CancelableClosure refresh_callback_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProvider); 67 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProvider);
69 }; 68 };
70 69
71 } // namespace policy 70 } // namespace policy
72 71
73 #endif // CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_ 72 #endif // CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/async_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698