| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void AboutToNavigateRenderView( | 59 virtual void AboutToNavigateRenderView( |
| 60 content::RenderViewHost* render_view_host) OVERRIDE; | 60 content::RenderViewHost* render_view_host) OVERRIDE; |
| 61 virtual void DidStartProvisionalLoadForFrame( | 61 virtual void DidStartProvisionalLoadForFrame( |
| 62 content::RenderFrameHost* render_frame_host, | 62 content::RenderFrameHost* render_frame_host, |
| 63 const GURL& validated_url, | 63 const GURL& validated_url, |
| 64 bool is_error_page, | 64 bool is_error_page, |
| 65 bool is_iframe_srcdoc) OVERRIDE; | 65 bool is_iframe_srcdoc) OVERRIDE; |
| 66 virtual void DidCommitProvisionalLoadForFrame( | 66 virtual void DidCommitProvisionalLoadForFrame( |
| 67 content::RenderFrameHost* render_frame_host, | 67 content::RenderFrameHost* render_frame_host, |
| 68 const GURL& url, | 68 const GURL& url, |
| 69 bool url_is_unreachable, |
| 69 ui::PageTransition transition_type) OVERRIDE; | 70 ui::PageTransition transition_type) OVERRIDE; |
| 70 virtual void DidFailProvisionalLoad( | 71 virtual void DidFailProvisionalLoad( |
| 71 content::RenderFrameHost* render_frame_host, | 72 content::RenderFrameHost* render_frame_host, |
| 72 const GURL& validated_url, | 73 const GURL& validated_url, |
| 73 int error_code, | 74 int error_code, |
| 74 const base::string16& error_description) OVERRIDE; | 75 const base::string16& error_description) OVERRIDE; |
| 75 virtual void DocumentLoadedInFrame( | 76 virtual void DocumentLoadedInFrame( |
| 76 content::RenderFrameHost* render_frame_host) OVERRIDE; | 77 content::RenderFrameHost* render_frame_host) OVERRIDE; |
| 77 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 78 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
| 78 const GURL& validated_url) OVERRIDE; | 79 const GURL& validated_url) OVERRIDE; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 236 |
| 236 // Created lazily upon OnListenerAdded. | 237 // Created lazily upon OnListenerAdded. |
| 237 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; | 238 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; |
| 238 | 239 |
| 239 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); | 240 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } // namespace extensions | 243 } // namespace extensions |
| 243 | 244 |
| 244 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 245 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| OLD | NEW |