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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 scoped_ptr<ExtensionError> error); | 223 scoped_ptr<ExtensionError> error); |
223 | 224 |
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(int embedder_process_id, int view_instance_id) {} | 231 virtual void CleanUpWebView(int embedder_process_id, int view_instance_id) {} |
231 | 232 |
| 233 // Attaches the task manager extension tag to |web_contents|, if needed based |
| 234 // on |view_type|, so that its corresponding task shows up in the task |
| 235 // manager. |
| 236 virtual void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 237 ViewType view_type) {} |
| 238 |
232 // Returns the single instance of |this|. | 239 // Returns the single instance of |this|. |
233 static ExtensionsBrowserClient* Get(); | 240 static ExtensionsBrowserClient* Get(); |
234 | 241 |
235 // Initialize the single instance. | 242 // Initialize the single instance. |
236 static void Set(ExtensionsBrowserClient* client); | 243 static void Set(ExtensionsBrowserClient* client); |
237 }; | 244 }; |
238 | 245 |
239 } // namespace extensions | 246 } // namespace extensions |
240 | 247 |
241 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 248 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |