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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const GURL& validated_url, | 53 const GURL& validated_url, |
54 bool is_error_page, | 54 bool is_error_page, |
55 bool is_iframe_srcdoc) override; | 55 bool is_iframe_srcdoc) override; |
56 void DidCommitProvisionalLoadForFrame( | 56 void DidCommitProvisionalLoadForFrame( |
57 content::RenderFrameHost* render_frame_host, | 57 content::RenderFrameHost* render_frame_host, |
58 const GURL& url, | 58 const GURL& url, |
59 ui::PageTransition transition_type) override; | 59 ui::PageTransition transition_type) override; |
60 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, | 60 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, |
61 const GURL& validated_url, | 61 const GURL& validated_url, |
62 int error_code, | 62 int error_code, |
63 const base::string16& error_description) override; | 63 const base::string16& error_description, |
| 64 bool was_ignored_by_handler) override; |
64 void DocumentLoadedInFrame( | 65 void DocumentLoadedInFrame( |
65 content::RenderFrameHost* render_frame_host) override; | 66 content::RenderFrameHost* render_frame_host) override; |
66 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 67 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
67 const GURL& validated_url) override; | 68 const GURL& validated_url) override; |
68 void DidFailLoad(content::RenderFrameHost* render_frame_host, | 69 void DidFailLoad(content::RenderFrameHost* render_frame_host, |
69 const GURL& validated_url, | 70 const GURL& validated_url, |
70 int error_code, | 71 int error_code, |
71 const base::string16& error_description) override; | 72 const base::string16& error_description, |
| 73 bool was_ignored_by_handler) override; |
72 void DidGetRedirectForResourceRequest( | 74 void DidGetRedirectForResourceRequest( |
73 content::RenderFrameHost* render_frame_host, | 75 content::RenderFrameHost* render_frame_host, |
74 const content::ResourceRedirectDetails& details) override; | 76 const content::ResourceRedirectDetails& details) override; |
75 void DidOpenRequestedURL(content::WebContents* new_contents, | 77 void DidOpenRequestedURL(content::WebContents* new_contents, |
76 content::RenderFrameHost* source_render_frame_host, | 78 content::RenderFrameHost* source_render_frame_host, |
77 const GURL& url, | 79 const GURL& url, |
78 const content::Referrer& referrer, | 80 const content::Referrer& referrer, |
79 WindowOpenDisposition disposition, | 81 WindowOpenDisposition disposition, |
80 ui::PageTransition transition) override; | 82 ui::PageTransition transition) override; |
81 void WebContentsDestroyed() override; | 83 void WebContentsDestroyed() override; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 218 |
217 // Created lazily upon OnListenerAdded. | 219 // Created lazily upon OnListenerAdded. |
218 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; | 220 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; |
219 | 221 |
220 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); | 222 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); |
221 }; | 223 }; |
222 | 224 |
223 } // namespace extensions | 225 } // namespace extensions |
224 | 226 |
225 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 227 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
OLD | NEW |