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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Returns the ExtensionWebContentsObserver for the given |web_contents|. | 220 // Returns the ExtensionWebContentsObserver for the given |web_contents|. |
220 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 221 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
221 content::WebContents* web_contents) = 0; | 222 content::WebContents* web_contents) = 0; |
222 | 223 |
223 // Cleans up browser-side state associated with a WebView that is being | 224 // Cleans up browser-side state associated with a WebView that is being |
224 // destroyed. | 225 // destroyed. |
225 virtual void CleanUpWebView(content::BrowserContext* browser_context, | 226 virtual void CleanUpWebView(content::BrowserContext* browser_context, |
226 int embedder_process_id, | 227 int embedder_process_id, |
227 int view_instance_id) {} | 228 int view_instance_id) {} |
228 | 229 |
| 230 // Attaches the task manager extension tag to |web_contents|, if needed based |
| 231 // on |view_type|, so that its corresponding task shows up in the task |
| 232 // manager. |
| 233 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 234 ViewType view_type) {} |
| 235 |
229 // Returns the single instance of |this|. | 236 // Returns the single instance of |this|. |
230 static ExtensionsBrowserClient* Get(); | 237 static ExtensionsBrowserClient* Get(); |
231 | 238 |
232 // Initialize the single instance. | 239 // Initialize the single instance. |
233 static void Set(ExtensionsBrowserClient* client); | 240 static void Set(ExtensionsBrowserClient* client); |
234 }; | 241 }; |
235 | 242 |
236 } // namespace extensions | 243 } // namespace extensions |
237 | 244 |
238 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 245 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |