| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 explicit TabHelper(content::WebContents* web_contents); | 146 explicit TabHelper(content::WebContents* web_contents); |
| 147 friend class content::WebContentsUserData<TabHelper>; | 147 friend class content::WebContentsUserData<TabHelper>; |
| 148 | 148 |
| 149 // Displays UI for completion of creating a bookmark hosted app. | 149 // Displays UI for completion of creating a bookmark hosted app. |
| 150 void FinishCreateBookmarkApp(const extensions::Extension* extension, | 150 void FinishCreateBookmarkApp(const extensions::Extension* extension, |
| 151 const WebApplicationInfo& web_app_info); | 151 const WebApplicationInfo& web_app_info); |
| 152 | 152 |
| 153 // content::WebContentsObserver overrides. | 153 // content::WebContentsObserver overrides. |
| 154 void RenderFrameCreated(content::RenderFrameHost* host) override; | 154 void RenderFrameCreated(content::RenderFrameHost* host) override; |
| 155 void DidFinishNavigation( |
| 156 content::NavigationHandle* navigation_handle) override; |
| 155 void DidNavigateMainFrame( | 157 void DidNavigateMainFrame( |
| 156 const content::LoadCommittedDetails& details, | 158 const content::LoadCommittedDetails& details, |
| 157 const content::FrameNavigateParams& params) override; | 159 const content::FrameNavigateParams& params) override; |
| 158 bool OnMessageReceived(const IPC::Message& message) override; | 160 bool OnMessageReceived(const IPC::Message& message) override; |
| 159 bool OnMessageReceived(const IPC::Message& message, | 161 bool OnMessageReceived(const IPC::Message& message, |
| 160 content::RenderFrameHost* render_frame_host) override; | 162 content::RenderFrameHost* render_frame_host) override; |
| 161 void DidCloneToNewWebContents( | 163 void DidCloneToNewWebContents( |
| 162 content::WebContents* old_web_contents, | 164 content::WebContents* old_web_contents, |
| 163 content::WebContents* new_web_contents) override; | 165 content::WebContents* new_web_contents) override; |
| 164 | 166 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 289 |
| 288 // Generic weak ptr factory for posting callbacks. | 290 // Generic weak ptr factory for posting callbacks. |
| 289 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; | 291 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; |
| 290 | 292 |
| 291 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 293 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
| 292 }; | 294 }; |
| 293 | 295 |
| 294 } // namespace extensions | 296 } // namespace extensions |
| 295 | 297 |
| 296 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 298 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
| OLD | NEW |