| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
| 24 #include "content/public/browser/web_contents_user_data.h" | 24 #include "content/public/browser/web_contents_user_data.h" |
| 25 #include "extensions/browser/extension_function_dispatcher.h" | 25 #include "extensions/browser/extension_function_dispatcher.h" |
| 26 #include "extensions/browser/extension_registry_observer.h" | 26 #include "extensions/browser/extension_registry_observer.h" |
| 27 #include "extensions/browser/script_execution_observer.h" | 27 #include "extensions/browser/script_execution_observer.h" |
| 28 #include "extensions/browser/script_executor.h" | 28 #include "extensions/browser/script_executor.h" |
| 29 #include "extensions/common/extension_id.h" | 29 #include "extensions/common/extension_id.h" |
| 30 #include "extensions/common/stack_frame.h" | 30 #include "extensions/common/stack_frame.h" |
| 31 #include "third_party/skia/include/core/SkBitmap.h" | 31 #include "third_party/skia/include/core/SkBitmap.h" |
| 32 | 32 |
| 33 namespace content { | |
| 34 struct LoadCommittedDetails; | |
| 35 class RenderFrameHost; | |
| 36 } | |
| 37 | |
| 38 namespace gfx { | 33 namespace gfx { |
| 39 class Image; | 34 class Image; |
| 40 } | 35 } |
| 41 | 36 |
| 42 namespace extensions { | 37 namespace extensions { |
| 43 class ExtensionActionRunner; | 38 class ExtensionActionRunner; |
| 44 class BookmarkAppHelper; | 39 class BookmarkAppHelper; |
| 45 class Extension; | 40 class Extension; |
| 46 class LocationBarController; | 41 class LocationBarController; |
| 47 class WebstoreInlineInstallerFactory; | 42 class WebstoreInlineInstallerFactory; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 137 |
| 143 explicit TabHelper(content::WebContents* web_contents); | 138 explicit TabHelper(content::WebContents* web_contents); |
| 144 friend class content::WebContentsUserData<TabHelper>; | 139 friend class content::WebContentsUserData<TabHelper>; |
| 145 | 140 |
| 146 // Displays UI for completion of creating a bookmark hosted app. | 141 // Displays UI for completion of creating a bookmark hosted app. |
| 147 void FinishCreateBookmarkApp(const extensions::Extension* extension, | 142 void FinishCreateBookmarkApp(const extensions::Extension* extension, |
| 148 const WebApplicationInfo& web_app_info); | 143 const WebApplicationInfo& web_app_info); |
| 149 | 144 |
| 150 // content::WebContentsObserver overrides. | 145 // content::WebContentsObserver overrides. |
| 151 void RenderFrameCreated(content::RenderFrameHost* host) override; | 146 void RenderFrameCreated(content::RenderFrameHost* host) override; |
| 152 void DidNavigateMainFrame( | 147 void DidFinishNavigation( |
| 153 const content::LoadCommittedDetails& details, | 148 content::NavigationHandle* navigation_handle) override; |
| 154 const content::FrameNavigateParams& params) override; | |
| 155 bool OnMessageReceived(const IPC::Message& message) override; | 149 bool OnMessageReceived(const IPC::Message& message) override; |
| 156 bool OnMessageReceived(const IPC::Message& message, | 150 bool OnMessageReceived(const IPC::Message& message, |
| 157 content::RenderFrameHost* render_frame_host) override; | 151 content::RenderFrameHost* render_frame_host) override; |
| 158 void DidCloneToNewWebContents( | 152 void DidCloneToNewWebContents( |
| 159 content::WebContents* old_web_contents, | 153 content::WebContents* old_web_contents, |
| 160 content::WebContents* new_web_contents) override; | 154 content::WebContents* new_web_contents) override; |
| 161 | 155 |
| 162 // extensions::ExtensionFunctionDispatcher::Delegate overrides. | 156 // extensions::ExtensionFunctionDispatcher::Delegate overrides. |
| 163 extensions::WindowController* GetExtensionWindowController() const override; | 157 extensions::WindowController* GetExtensionWindowController() const override; |
| 164 content::WebContents* GetAssociatedWebContents() const override; | 158 content::WebContents* GetAssociatedWebContents() const override; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 278 |
| 285 // Generic weak ptr factory for posting callbacks. | 279 // Generic weak ptr factory for posting callbacks. |
| 286 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; | 280 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; |
| 287 | 281 |
| 288 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 282 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
| 289 }; | 283 }; |
| 290 | 284 |
| 291 } // namespace extensions | 285 } // namespace extensions |
| 292 | 286 |
| 293 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 287 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| OLD | NEW |