Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api.h

Issue 373623002: Convert remaining WebContentsObservers loading callbacks to use RFH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more compile error Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void DidCommitProvisionalLoadForFrame( 64 virtual void DidCommitProvisionalLoadForFrame(
65 content::RenderFrameHost* render_frame_host, 65 content::RenderFrameHost* render_frame_host,
66 const GURL& url, 66 const GURL& url,
67 content::PageTransition transition_type) OVERRIDE; 67 content::PageTransition transition_type) OVERRIDE;
68 virtual void DidFailProvisionalLoad( 68 virtual void DidFailProvisionalLoad(
69 content::RenderFrameHost* render_frame_host, 69 content::RenderFrameHost* render_frame_host,
70 const GURL& validated_url, 70 const GURL& validated_url,
71 int error_code, 71 int error_code,
72 const base::string16& error_description) OVERRIDE; 72 const base::string16& error_description) OVERRIDE;
73 virtual void DocumentLoadedInFrame( 73 virtual void DocumentLoadedInFrame(
74 int64 frame_num, 74 content::RenderFrameHost* render_frame_host) OVERRIDE;
75 content::RenderViewHost* render_view_host) OVERRIDE; 75 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host,
76 virtual void DidFinishLoad( 76 const GURL& validated_url) OVERRIDE;
77 int64 frame_num, 77 virtual void DidFailLoad(content::RenderFrameHost* render_frame_host,
78 const GURL& validated_url, 78 const GURL& validated_url,
79 bool is_main_frame, 79 int error_code,
80 content::RenderViewHost* render_view_host) OVERRIDE; 80 const base::string16& error_description) OVERRIDE;
81 virtual void DidFailLoad(
82 int64 frame_num,
83 const GURL& validated_url,
84 bool is_main_frame,
85 int error_code,
86 const base::string16& error_description,
87 content::RenderViewHost* render_view_host) OVERRIDE;
88 virtual void DidGetRedirectForResourceRequest( 81 virtual void DidGetRedirectForResourceRequest(
89 content::RenderViewHost* render_view_host, 82 content::RenderViewHost* render_view_host,
90 const content::ResourceRedirectDetails& details) OVERRIDE; 83 const content::ResourceRedirectDetails& details) OVERRIDE;
91 virtual void DidOpenRequestedURL(content::WebContents* new_contents, 84 virtual void DidOpenRequestedURL(content::WebContents* new_contents,
92 const GURL& url, 85 const GURL& url,
93 const content::Referrer& referrer, 86 const content::Referrer& referrer,
94 WindowOpenDisposition disposition, 87 WindowOpenDisposition disposition,
95 content::PageTransition transition, 88 content::PageTransition transition,
96 int64 source_frame_num) OVERRIDE; 89 int64 source_frame_num) OVERRIDE;
97 virtual void FrameDetached( 90 virtual void FrameDetached(
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 236
244 // Created lazily upon OnListenerAdded. 237 // Created lazily upon OnListenerAdded.
245 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; 238 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_;
246 239
247 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); 240 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI);
248 }; 241 };
249 242
250 } // namespace extensions 243 } // namespace extensions
251 244
252 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 245 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698