| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // content::WebContentsObserver implementation. | 55 // content::WebContentsObserver implementation. |
| 56 virtual void AboutToNavigateRenderView( | 56 virtual void AboutToNavigateRenderView( |
| 57 content::RenderViewHost* render_view_host) OVERRIDE; | 57 content::RenderViewHost* render_view_host) OVERRIDE; |
| 58 virtual void DidStartProvisionalLoadForFrame( | 58 virtual void DidStartProvisionalLoadForFrame( |
| 59 int64 frame_num, | 59 int64 frame_num, |
| 60 int64 parent_frame_num, | 60 int64 parent_frame_num, |
| 61 bool is_main_frame, | 61 bool is_main_frame, |
| 62 const GURL& validated_url, | 62 const GURL& validated_url, |
| 63 bool is_error_page, | 63 bool is_error_page, |
| 64 bool is_iframe_srcdoc, |
| 64 content::RenderViewHost* render_view_host) OVERRIDE; | 65 content::RenderViewHost* render_view_host) OVERRIDE; |
| 65 virtual void DidCommitProvisionalLoadForFrame( | 66 virtual void DidCommitProvisionalLoadForFrame( |
| 66 int64 frame_num, | 67 int64 frame_num, |
| 67 bool is_main_frame, | 68 bool is_main_frame, |
| 68 const GURL& url, | 69 const GURL& url, |
| 69 content::PageTransition transition_type, | 70 content::PageTransition transition_type, |
| 70 content::RenderViewHost* render_view_host) OVERRIDE; | 71 content::RenderViewHost* render_view_host) OVERRIDE; |
| 71 virtual void DidFailProvisionalLoad( | 72 virtual void DidFailProvisionalLoad( |
| 72 int64 frame_num, | 73 int64 frame_num, |
| 73 bool is_main_frame, | 74 bool is_main_frame, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); | 244 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 template <> | 247 template <> |
| 247 ProfileKeyedAPIFactory<WebNavigationAPI>* | 248 ProfileKeyedAPIFactory<WebNavigationAPI>* |
| 248 ProfileKeyedAPIFactory<WebNavigationAPI>::GetInstance(); | 249 ProfileKeyedAPIFactory<WebNavigationAPI>::GetInstance(); |
| 249 | 250 |
| 250 } // namespace extensions | 251 } // namespace extensions |
| 251 | 252 |
| 252 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 253 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| OLD | NEW |