OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "chrome/browser/extensions/active_tab_permission_granter.h" | 15 #include "chrome/browser/extensions/active_tab_permission_granter.h" |
16 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 16 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
17 #include "chrome/common/web_application_info.h" | 17 #include "chrome/common/web_application_info.h" |
18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
20 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
21 #include "content/public/browser/web_contents_user_data.h" | 21 #include "content/public/browser/web_contents_user_data.h" |
| 22 #include "extensions/common/stack_frame.h" |
22 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 struct LoadCommittedDetails; | 26 struct LoadCommittedDetails; |
26 } | 27 } |
27 | 28 |
28 namespace gfx { | 29 namespace gfx { |
29 class Image; | 30 class Image; |
30 } | 31 } |
31 | 32 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 const GURL& requestor_url); | 183 const GURL& requestor_url); |
183 void OnGetAppInstallState(const GURL& requestor_url, | 184 void OnGetAppInstallState(const GURL& requestor_url, |
184 int return_route_id, | 185 int return_route_id, |
185 int callback_id); | 186 int callback_id); |
186 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 187 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
187 void OnContentScriptsExecuting( | 188 void OnContentScriptsExecuting( |
188 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, | 189 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, |
189 int32 page_id, | 190 int32 page_id, |
190 const GURL& on_url); | 191 const GURL& on_url); |
191 void OnWatchedPageChange(const std::vector<std::string>& css_selectors); | 192 void OnWatchedPageChange(const std::vector<std::string>& css_selectors); |
| 193 void OnDetailedConsoleMessageAdded(const base::string16& message, |
| 194 const base::string16& source, |
| 195 const StackTrace& stack_trace, |
| 196 int32 severity_level); |
192 | 197 |
193 // App extensions related methods: | 198 // App extensions related methods: |
194 | 199 |
195 // Resets app_icon_ and if |extension| is non-null uses ImageLoader to load | 200 // Resets app_icon_ and if |extension| is non-null uses ImageLoader to load |
196 // the extension's image asynchronously. | 201 // the extension's image asynchronously. |
197 void UpdateExtensionAppIcon(const Extension* extension); | 202 void UpdateExtensionAppIcon(const Extension* extension); |
198 | 203 |
199 const Extension* GetExtension(const std::string& extension_app_id); | 204 const Extension* GetExtension(const std::string& extension_app_id); |
200 | 205 |
201 void OnImageLoaded(const gfx::Image& image); | 206 void OnImageLoaded(const gfx::Image& image); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 262 |
258 // Vend weak pointers that can be invalidated to stop in-progress loads. | 263 // Vend weak pointers that can be invalidated to stop in-progress loads. |
259 base::WeakPtrFactory<TabHelper> image_loader_ptr_factory_; | 264 base::WeakPtrFactory<TabHelper> image_loader_ptr_factory_; |
260 | 265 |
261 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 266 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
262 }; | 267 }; |
263 | 268 |
264 } // namespace extensions | 269 } // namespace extensions |
265 | 270 |
266 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 271 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
OLD | NEW |