| 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 14 matching lines...) Expand all  Loading... | 
|   25 #include "content/public/browser/web_contents_observer.h" |   25 #include "content/public/browser/web_contents_observer.h" | 
|   26 #include "content/public/browser/web_contents_user_data.h" |   26 #include "content/public/browser/web_contents_user_data.h" | 
|   27 #include "extensions/browser/extension_function_dispatcher.h" |   27 #include "extensions/browser/extension_function_dispatcher.h" | 
|   28 #include "extensions/browser/extension_registry_observer.h" |   28 #include "extensions/browser/extension_registry_observer.h" | 
|   29 #include "extensions/browser/script_execution_observer.h" |   29 #include "extensions/browser/script_execution_observer.h" | 
|   30 #include "extensions/browser/script_executor.h" |   30 #include "extensions/browser/script_executor.h" | 
|   31 #include "extensions/common/extension_id.h" |   31 #include "extensions/common/extension_id.h" | 
|   32 #include "extensions/common/stack_frame.h" |   32 #include "extensions/common/stack_frame.h" | 
|   33 #include "third_party/skia/include/core/SkBitmap.h" |   33 #include "third_party/skia/include/core/SkBitmap.h" | 
|   34  |   34  | 
 |   35 namespace content { | 
 |   36 class RenderFrameHost; | 
 |   37 } | 
 |   38  | 
|   35 namespace gfx { |   39 namespace gfx { | 
|   36 class Image; |   40 class Image; | 
|   37 } |   41 } | 
|   38  |   42  | 
|   39 namespace extensions { |   43 namespace extensions { | 
|   40 class ExtensionActionRunner; |   44 class ExtensionActionRunner; | 
|   41 class BookmarkAppHelper; |   45 class BookmarkAppHelper; | 
|   42 class Extension; |   46 class Extension; | 
|   43 class WebstoreInlineInstallerFactory; |   47 class WebstoreInlineInstallerFactory; | 
|   44  |   48  | 
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  135   friend class content::WebContentsUserData<TabHelper>; |  139   friend class content::WebContentsUserData<TabHelper>; | 
|  136  |  140  | 
|  137   // Displays UI for completion of creating a bookmark hosted app. |  141   // Displays UI for completion of creating a bookmark hosted app. | 
|  138   void FinishCreateBookmarkApp(const Extension* extension, |  142   void FinishCreateBookmarkApp(const Extension* extension, | 
|  139                                const WebApplicationInfo& web_app_info); |  143                                const WebApplicationInfo& web_app_info); | 
|  140  |  144  | 
|  141   // content::WebContentsObserver overrides. |  145   // content::WebContentsObserver overrides. | 
|  142   void RenderFrameCreated(content::RenderFrameHost* host) override; |  146   void RenderFrameCreated(content::RenderFrameHost* host) override; | 
|  143   void DidFinishNavigation( |  147   void DidFinishNavigation( | 
|  144       content::NavigationHandle* navigation_handle) override; |  148       content::NavigationHandle* navigation_handle) override; | 
|  145   bool OnMessageReceived(const IPC::Message& message) override; |  | 
|  146   bool OnMessageReceived(const IPC::Message& message, |  149   bool OnMessageReceived(const IPC::Message& message, | 
|  147                          content::RenderFrameHost* render_frame_host) override; |  150                          content::RenderFrameHost* sender) override; | 
|  148   void DidCloneToNewWebContents( |  151   void DidCloneToNewWebContents( | 
|  149       content::WebContents* old_web_contents, |  152       content::WebContents* old_web_contents, | 
|  150       content::WebContents* new_web_contents) override; |  153       content::WebContents* new_web_contents) override; | 
|  151  |  154  | 
|  152   // ExtensionFunctionDispatcher::Delegate overrides. |  155   // ExtensionFunctionDispatcher::Delegate overrides. | 
|  153   WindowController* GetExtensionWindowController() const override; |  156   WindowController* GetExtensionWindowController() const override; | 
|  154   content::WebContents* GetAssociatedWebContents() const override; |  157   content::WebContents* GetAssociatedWebContents() const override; | 
|  155  |  158  | 
|  156   // ExtensionRegistryObserver: |  159   // ExtensionRegistryObserver: | 
|  157   void OnExtensionUnloaded(content::BrowserContext* browser_context, |  160   void OnExtensionUnloaded(content::BrowserContext* browser_context, | 
|  158                            const Extension* extension, |  161                            const Extension* extension, | 
|  159                            UnloadedExtensionReason reason) override; |  162                            UnloadedExtensionReason reason) override; | 
|  160  |  163  | 
|  161   // mojom::InlineInstall: |  164   // mojom::InlineInstall: | 
|  162   void DoInlineInstall( |  165   void DoInlineInstall( | 
|  163       const std::string& webstore_item_id, |  166       const std::string& webstore_item_id, | 
|  164       int listeners_mask, |  167       int listeners_mask, | 
|  165       mojom::InlineInstallProgressListenerPtr install_progress_listener, |  168       mojom::InlineInstallProgressListenerPtr install_progress_listener, | 
|  166       DoInlineInstallCallback callback) override; |  169       DoInlineInstallCallback callback) override; | 
|  167  |  170  | 
|  168   // Message handlers. |  171   // Message handlers. | 
|  169   void OnDidGetWebApplicationInfo(const WebApplicationInfo& info); |  172   void OnDidGetWebApplicationInfo(content::RenderFrameHost* sender, | 
 |  173                                   const WebApplicationInfo& info); | 
|  170   void OnGetAppInstallState(content::RenderFrameHost* host, |  174   void OnGetAppInstallState(content::RenderFrameHost* host, | 
|  171                             const GURL& requestor_url, |  175                             const GURL& requestor_url, | 
|  172                             int return_route_id, |  176                             int return_route_id, | 
|  173                             int callback_id); |  177                             int callback_id); | 
|  174   void OnContentScriptsExecuting( |  178   void OnContentScriptsExecuting( | 
|  175       content::RenderFrameHost* host, |  179       content::RenderFrameHost* host, | 
|  176       const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, |  180       const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, | 
|  177       const GURL& on_url); |  181       const GURL& on_url); | 
|  178  |  182  | 
|  179   // App extensions related methods: |  183   // App extensions related methods: | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  276  |  280  | 
|  277   // Generic weak ptr factory for posting callbacks. |  281   // Generic weak ptr factory for posting callbacks. | 
|  278   base::WeakPtrFactory<TabHelper> weak_ptr_factory_; |  282   base::WeakPtrFactory<TabHelper> weak_ptr_factory_; | 
|  279  |  283  | 
|  280   DISALLOW_COPY_AND_ASSIGN(TabHelper); |  284   DISALLOW_COPY_AND_ASSIGN(TabHelper); | 
|  281 }; |  285 }; | 
|  282  |  286  | 
|  283 }  // namespace extensions |  287 }  // namespace extensions | 
|  284  |  288  | 
|  285 #endif  // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |  289 #endif  // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 
| OLD | NEW |