| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual ExtensionCache* GetExtensionCache() override; |
| 100 virtual bool IsBackgroundUpdateAllowed() override; |
| 101 virtual bool IsMinBrowserVersionSupported( |
| 102 const std::string& min_version) override; |
| 100 | 103 |
| 101 private: | 104 private: |
| 102 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 105 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 103 | 106 |
| 104 // Observer for Chrome-specific notifications. | 107 // Observer for Chrome-specific notifications. |
| 105 ChromeNotificationObserver notification_observer_; | 108 ChromeNotificationObserver notification_observer_; |
| 106 | 109 |
| 107 // Support for ProcessManager. | 110 // Support for ProcessManager. |
| 108 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 111 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
| 109 | 112 |
| 110 // Client for API implementations. | 113 // Client for API implementations. |
| 111 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 114 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
| 112 | 115 |
| 113 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 116 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
| 114 | 117 |
| 115 scoped_ptr<ExtensionCache> extension_cache_; | 118 scoped_ptr<ExtensionCache> extension_cache_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 120 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace extensions | 123 } // namespace extensions |
| 121 | 124 |
| 122 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |