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

Side by Side Diff: chrome/browser/extensions/extension_system_impl.h

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "extensions/browser/extension_system.h" 9 #include "extensions/browser/extension_system.h"
10 #include "extensions/common/one_shot_event.h" 10 #include "extensions/common/one_shot_event.h"
(...skipping 11 matching lines...) Expand all
22 class StateStoreNotificationObserver; 22 class StateStoreNotificationObserver;
23 23
24 // The ExtensionSystem for ProfileImpl and OffTheRecordProfileImpl. 24 // The ExtensionSystem for ProfileImpl and OffTheRecordProfileImpl.
25 // Implementation details: non-shared services are owned by 25 // Implementation details: non-shared services are owned by
26 // ExtensionSystemImpl, a KeyedService with separate incognito 26 // ExtensionSystemImpl, a KeyedService with separate incognito
27 // instances. A private Shared class (also a KeyedService, 27 // instances. A private Shared class (also a KeyedService,
28 // but with a shared instance for incognito) keeps the common services. 28 // but with a shared instance for incognito) keeps the common services.
29 class ExtensionSystemImpl : public ExtensionSystem { 29 class ExtensionSystemImpl : public ExtensionSystem {
30 public: 30 public:
31 explicit ExtensionSystemImpl(Profile* profile); 31 explicit ExtensionSystemImpl(Profile* profile);
32 virtual ~ExtensionSystemImpl(); 32 ~ExtensionSystemImpl() override;
33 33
34 // KeyedService implementation. 34 // KeyedService implementation.
35 virtual void Shutdown() override; 35 void Shutdown() override;
36 36
37 virtual void InitForRegularProfile(bool extensions_enabled) override; 37 void InitForRegularProfile(bool extensions_enabled) override;
38 38
39 virtual ExtensionService* extension_service() override; // shared 39 ExtensionService* extension_service() override; // shared
40 virtual RuntimeData* runtime_data() override; // shared 40 RuntimeData* runtime_data() override; // shared
41 virtual ManagementPolicy* management_policy() override; // shared 41 ManagementPolicy* management_policy() override; // shared
42 // shared 42 // shared
43 virtual SharedUserScriptMaster* shared_user_script_master() override; 43 SharedUserScriptMaster* shared_user_script_master() override;
44 virtual ProcessManager* process_manager() override; 44 ProcessManager* process_manager() override;
45 virtual StateStore* state_store() override; // shared 45 StateStore* state_store() override; // shared
46 virtual StateStore* rules_store() override; // shared 46 StateStore* rules_store() override; // shared
47 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() 47 LazyBackgroundTaskQueue* lazy_background_task_queue() override; // shared
48 override; // shared 48 InfoMap* info_map() override; // shared
49 virtual InfoMap* info_map() override; // shared 49 EventRouter* event_router() override; // shared
50 virtual EventRouter* event_router() override; // shared 50 WarningService* warning_service() override;
51 virtual WarningService* warning_service() override; 51 Blacklist* blacklist() override; // shared
52 virtual Blacklist* blacklist() override; // shared 52 ErrorConsole* error_console() override;
53 virtual ErrorConsole* error_console() override; 53 InstallVerifier* install_verifier() override;
54 virtual InstallVerifier* install_verifier() override; 54 QuotaService* quota_service() override; // shared
55 virtual QuotaService* quota_service() override; // shared
56 55
57 virtual void RegisterExtensionWithRequestContexts( 56 void RegisterExtensionWithRequestContexts(
58 const Extension* extension) override; 57 const Extension* extension) override;
59 58
60 virtual void UnregisterExtensionWithRequestContexts( 59 void UnregisterExtensionWithRequestContexts(
61 const std::string& extension_id, 60 const std::string& extension_id,
62 const UnloadedExtensionInfo::Reason reason) override; 61 const UnloadedExtensionInfo::Reason reason) override;
63 62
64 virtual const OneShotEvent& ready() const override; 63 const OneShotEvent& ready() const override;
65 virtual ContentVerifier* content_verifier() override; // shared 64 ContentVerifier* content_verifier() override; // shared
66 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( 65 scoped_ptr<ExtensionSet> GetDependentExtensions(
67 const Extension* extension) override; 66 const Extension* extension) override;
68 67
69 virtual DeclarativeUserScriptMaster* 68 DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByExtension(
70 GetDeclarativeUserScriptMasterByExtension( 69 const ExtensionId& extension_id) override; // shared
71 const ExtensionId& extension_id) override; // shared
72 70
73 private: 71 private:
74 friend class ExtensionSystemSharedFactory; 72 friend class ExtensionSystemSharedFactory;
75 73
76 // Owns the Extension-related systems that have a single instance 74 // Owns the Extension-related systems that have a single instance
77 // shared between normal and incognito profiles. 75 // shared between normal and incognito profiles.
78 class Shared : public KeyedService { 76 class Shared : public KeyedService {
79 public: 77 public:
80 explicit Shared(Profile* profile); 78 explicit Shared(Profile* profile);
81 virtual ~Shared(); 79 ~Shared() override;
82 80
83 // Initialization takes place in phases. 81 // Initialization takes place in phases.
84 virtual void InitPrefs(); 82 virtual void InitPrefs();
85 // This must not be called until all the providers have been created. 83 // This must not be called until all the providers have been created.
86 void RegisterManagementPolicyProviders(); 84 void RegisterManagementPolicyProviders();
87 void Init(bool extensions_enabled); 85 void Init(bool extensions_enabled);
88 86
89 // KeyedService implementation. 87 // KeyedService implementation.
90 virtual void Shutdown() override; 88 void Shutdown() override;
91 89
92 StateStore* state_store(); 90 StateStore* state_store();
93 StateStore* rules_store(); 91 StateStore* rules_store();
94 ExtensionService* extension_service(); 92 ExtensionService* extension_service();
95 RuntimeData* runtime_data(); 93 RuntimeData* runtime_data();
96 ManagementPolicy* management_policy(); 94 ManagementPolicy* management_policy();
97 SharedUserScriptMaster* shared_user_script_master(); 95 SharedUserScriptMaster* shared_user_script_master();
98 Blacklist* blacklist(); 96 Blacklist* blacklist();
99 InfoMap* info_map(); 97 InfoMap* info_map();
100 LazyBackgroundTaskQueue* lazy_background_task_queue(); 98 LazyBackgroundTaskQueue* lazy_background_task_queue();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // extension processes and those require access to the ResourceContext owned 161 // extension processes and those require access to the ResourceContext owned
164 // by |io_data_|. 162 // by |io_data_|.
165 scoped_ptr<ProcessManager> process_manager_; 163 scoped_ptr<ProcessManager> process_manager_;
166 164
167 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 165 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
168 }; 166 };
169 167
170 } // namespace extensions 168 } // namespace extensions
171 169
172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 170 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system_factory.h ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698