OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual void RegisterExtensionFunctions( | 89 virtual void RegisterExtensionFunctions( |
90 ExtensionFunctionRegistry* registry) const override; | 90 ExtensionFunctionRegistry* registry) const override; |
91 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( | 91 virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate( |
92 content::BrowserContext* context) const override; | 92 content::BrowserContext* context) const override; |
93 virtual ComponentExtensionResourceManager* | 93 virtual ComponentExtensionResourceManager* |
94 GetComponentExtensionResourceManager() override; | 94 GetComponentExtensionResourceManager() override; |
95 virtual void BroadcastEventToRenderers( | 95 virtual void BroadcastEventToRenderers( |
96 const std::string& event_name, | 96 const std::string& event_name, |
97 scoped_ptr<base::ListValue> args) override; | 97 scoped_ptr<base::ListValue> args) override; |
98 virtual net::NetLog* GetNetLog() override; | 98 virtual net::NetLog* GetNetLog() override; |
99 virtual ExtensionCache* GetExtensionCache() override; | |
100 | 99 |
101 private: | 100 private: |
102 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 101 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
103 | 102 |
104 // Observer for Chrome-specific notifications. | 103 // Observer for Chrome-specific notifications. |
105 ChromeNotificationObserver notification_observer_; | 104 ChromeNotificationObserver notification_observer_; |
106 | 105 |
107 // Support for ProcessManager. | 106 // Support for ProcessManager. |
108 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 107 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
109 | 108 |
110 // Client for API implementations. | 109 // Client for API implementations. |
111 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 110 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
112 | 111 |
113 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 112 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
114 | 113 |
115 scoped_ptr<ExtensionCache> extension_cache_; | |
116 | |
117 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 114 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
118 }; | 115 }; |
119 | 116 |
120 } // namespace extensions | 117 } // namespace extensions |
121 | 118 |
122 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 119 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |