| 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 // Defines the Chrome Extensions WebNavigation API functions for observing and | 5 // Defines the Chrome Extensions WebNavigation API functions for observing and |
| 6 // intercepting navigation events, as specified in the extension JSON API. | 6 // intercepting navigation events, as specified in the extension JSON API. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // content::NotificationObserver implementation. | 49 // content::NotificationObserver implementation. |
| 50 void Observe(int type, | 50 void Observe(int type, |
| 51 const content::NotificationSource& source, | 51 const content::NotificationSource& source, |
| 52 const content::NotificationDetails& details) override; | 52 const content::NotificationDetails& details) override; |
| 53 | 53 |
| 54 // content::WebContentsObserver implementation. | 54 // content::WebContentsObserver implementation. |
| 55 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; | 55 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; |
| 56 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; | 56 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; |
| 57 void AboutToNavigateRenderFrame( | 57 void AboutToNavigateRenderFrame( |
| 58 content::RenderFrameHost* render_frame_host) override; | 58 content::RenderFrameHost* old_host, |
| 59 content::RenderFrameHost* new_host) override; |
| 59 void DidStartProvisionalLoadForFrame( | 60 void DidStartProvisionalLoadForFrame( |
| 60 content::RenderFrameHost* render_frame_host, | 61 content::RenderFrameHost* render_frame_host, |
| 61 const GURL& validated_url, | 62 const GURL& validated_url, |
| 62 bool is_error_page, | 63 bool is_error_page, |
| 63 bool is_iframe_srcdoc) override; | 64 bool is_iframe_srcdoc) override; |
| 64 void DidCommitProvisionalLoadForFrame( | 65 void DidCommitProvisionalLoadForFrame( |
| 65 content::RenderFrameHost* render_frame_host, | 66 content::RenderFrameHost* render_frame_host, |
| 66 const GURL& url, | 67 const GURL& url, |
| 67 ui::PageTransition transition_type) override; | 68 ui::PageTransition transition_type) override; |
| 68 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, | 69 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 232 |
| 232 // Created lazily upon OnListenerAdded. | 233 // Created lazily upon OnListenerAdded. |
| 233 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; | 234 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; |
| 234 | 235 |
| 235 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); | 236 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 } // namespace extensions | 239 } // namespace extensions |
| 239 | 240 |
| 240 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 241 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| OLD | NEW |