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; |
99 | 100 |
100 private: | 101 private: |
101 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 102 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
102 | 103 |
103 // Observer for Chrome-specific notifications. | 104 // Observer for Chrome-specific notifications. |
104 ChromeNotificationObserver notification_observer_; | 105 ChromeNotificationObserver notification_observer_; |
105 | 106 |
106 // Support for ProcessManager. | 107 // Support for ProcessManager. |
107 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 108 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
108 | 109 |
109 // Client for API implementations. | 110 // Client for API implementations. |
110 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 111 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
111 | 112 |
112 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 113 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
113 | 114 |
| 115 scoped_ptr<ExtensionCache> extension_cache_; |
| 116 |
114 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 117 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
115 }; | 118 }; |
116 | 119 |
117 } // namespace extensions | 120 } // namespace extensions |
118 | 121 |
119 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 122 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |