| 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 <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/extensions/chrome_notification_observer.h" | 16 #include "chrome/browser/extensions/chrome_notification_observer.h" |
| 15 #include "extensions/browser/extensions_browser_client.h" | 17 #include "extensions/browser/extensions_browser_client.h" |
| 16 | 18 |
| 17 namespace base { | 19 namespace base { |
| 18 class CommandLine; | 20 class CommandLine; |
| 19 } | 21 } |
| 20 | 22 |
| 21 namespace content { | 23 namespace content { |
| 22 class BrowserContext; | 24 class BrowserContext; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 105 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 104 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 106 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 105 content::WebContents* web_contents) override; | 107 content::WebContents* web_contents) override; |
| 106 void ReportError(content::BrowserContext* context, | 108 void ReportError(content::BrowserContext* context, |
| 107 scoped_ptr<ExtensionError> error) override; | 109 scoped_ptr<ExtensionError> error) override; |
| 108 void CleanUpWebView(content::BrowserContext* browser_context, | 110 void CleanUpWebView(content::BrowserContext* browser_context, |
| 109 int embedder_process_id, | 111 int embedder_process_id, |
| 110 int view_instance_id) override; | 112 int view_instance_id) override; |
| 111 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, | 113 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 112 ViewType view_type) override; | 114 ViewType view_type) override; |
| 115 scoped_refptr<update_client::UpdateClient> CreateUpdateClient( |
| 116 content::BrowserContext* context) override; |
| 113 | 117 |
| 114 private: | 118 private: |
| 115 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 119 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 116 | 120 |
| 117 // Observer for Chrome-specific notifications. | 121 // Observer for Chrome-specific notifications. |
| 118 ChromeNotificationObserver notification_observer_; | 122 ChromeNotificationObserver notification_observer_; |
| 119 | 123 |
| 120 // Support for ProcessManager. | 124 // Support for ProcessManager. |
| 121 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 125 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
| 122 | 126 |
| 123 // Client for API implementations. | 127 // Client for API implementations. |
| 124 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 128 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
| 125 | 129 |
| 126 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 130 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
| 127 | 131 |
| 128 scoped_ptr<ExtensionCache> extension_cache_; | 132 scoped_ptr<ExtensionCache> extension_cache_; |
| 129 | 133 |
| 130 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 134 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } // namespace extensions | 137 } // namespace extensions |
| 134 | 138 |
| 135 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |