| 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 EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "extensions/browser/extension_event_histogram_value.h" | 12 #include "extensions/browser/extension_event_histogram_value.h" |
| 13 #include "extensions/browser/extension_prefs_observer.h" | 13 #include "extensions/browser/extension_prefs_observer.h" |
| 14 #include "extensions/common/view_type.h" |
| 14 | 15 |
| 15 class ExtensionFunctionRegistry; | 16 class ExtensionFunctionRegistry; |
| 16 class PrefService; | 17 class PrefService; |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class CommandLine; | 20 class CommandLine; |
| 20 class FilePath; | 21 class FilePath; |
| 21 class ListValue; | 22 class ListValue; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Returns the ExtensionWebContentsObserver for the given |web_contents|. | 225 // Returns the ExtensionWebContentsObserver for the given |web_contents|. |
| 225 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 226 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 226 content::WebContents* web_contents) = 0; | 227 content::WebContents* web_contents) = 0; |
| 227 | 228 |
| 228 // Cleans up browser-side state associated with a WebView that is being | 229 // Cleans up browser-side state associated with a WebView that is being |
| 229 // destroyed. | 230 // destroyed. |
| 230 virtual void CleanUpWebView(content::BrowserContext* browser_context, | 231 virtual void CleanUpWebView(content::BrowserContext* browser_context, |
| 231 int embedder_process_id, | 232 int embedder_process_id, |
| 232 int view_instance_id) {} | 233 int view_instance_id) {} |
| 233 | 234 |
| 235 // Attaches the task manager extension tag to |web_contents|, if needed based |
| 236 // on |view_type|, so that its corresponding task shows up in the task |
| 237 // manager. |
| 238 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 239 ViewType view_type) {} |
| 240 |
| 234 // Returns the single instance of |this|. | 241 // Returns the single instance of |this|. |
| 235 static ExtensionsBrowserClient* Get(); | 242 static ExtensionsBrowserClient* Get(); |
| 236 | 243 |
| 237 // Initialize the single instance. | 244 // Initialize the single instance. |
| 238 static void Set(ExtensionsBrowserClient* client); | 245 static void Set(ExtensionsBrowserClient* client); |
| 239 }; | 246 }; |
| 240 | 247 |
| 241 } // namespace extensions | 248 } // namespace extensions |
| 242 | 249 |
| 243 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 250 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |