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

Side by Side Diff: components/policy/core/common/async_policy_provider.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 public base::NonThreadSafe { 30 public base::NonThreadSafe {
31 public: 31 public:
32 // The AsyncPolicyProvider does a synchronous load in its constructor, and 32 // The AsyncPolicyProvider does a synchronous load in its constructor, and
33 // therefore it needs the |registry| at construction time. The same |registry| 33 // therefore it needs the |registry| at construction time. The same |registry|
34 // should be passed later to Init(). 34 // should be passed later to Init().
35 AsyncPolicyProvider(SchemaRegistry* registry, 35 AsyncPolicyProvider(SchemaRegistry* registry,
36 scoped_ptr<AsyncPolicyLoader> loader); 36 scoped_ptr<AsyncPolicyLoader> loader);
37 virtual ~AsyncPolicyProvider(); 37 virtual ~AsyncPolicyProvider();
38 38
39 // ConfigurationPolicyProvider implementation. 39 // ConfigurationPolicyProvider implementation.
40 virtual void Init(SchemaRegistry* registry) OVERRIDE; 40 virtual void Init(SchemaRegistry* registry) override;
41 virtual void Shutdown() OVERRIDE; 41 virtual void Shutdown() override;
42 virtual void RefreshPolicies() OVERRIDE; 42 virtual void RefreshPolicies() override;
43 43
44 private: 44 private:
45 // Helper for RefreshPolicies(). 45 // Helper for RefreshPolicies().
46 void ReloadAfterRefreshSync(); 46 void ReloadAfterRefreshSync();
47 47
48 // Invoked with the latest bundle loaded by the |loader_|. 48 // Invoked with the latest bundle loaded by the |loader_|.
49 void OnLoaderReloaded(scoped_ptr<PolicyBundle> bundle); 49 void OnLoaderReloaded(scoped_ptr<PolicyBundle> bundle);
50 50
51 // Callback passed to the loader that it uses to pass back the current policy 51 // Callback passed to the loader that it uses to pass back the current policy
52 // bundle to the provider. This is invoked on the background thread and 52 // bundle to the provider. This is invoked on the background thread and
(...skipping 14 matching lines...) Expand all
67 // Used to get a WeakPtr to |this| for the update callback given to the 67 // Used to get a WeakPtr to |this| for the update callback given to the
68 // loader. 68 // loader.
69 base::WeakPtrFactory<AsyncPolicyProvider> weak_factory_; 69 base::WeakPtrFactory<AsyncPolicyProvider> weak_factory_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProvider); 71 DISALLOW_COPY_AND_ASSIGN(AsyncPolicyProvider);
72 }; 72 };
73 73
74 } // namespace policy 74 } // namespace policy
75 75
76 #endif // COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_ 76 #endif // COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698