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

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

Issue 10392072: Pass the render view host with all provisional load related callbacks on the web contents observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/web_navigation/web_navigation_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 10 #pragma once
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void DidStartProvisionalLoadForFrame( 149 virtual void DidStartProvisionalLoadForFrame(
150 int64 frame_id, 150 int64 frame_id,
151 bool is_main_frame, 151 bool is_main_frame,
152 const GURL& validated_url, 152 const GURL& validated_url,
153 bool is_error_page, 153 bool is_error_page,
154 content::RenderViewHost* render_view_host) OVERRIDE; 154 content::RenderViewHost* render_view_host) OVERRIDE;
155 virtual void DidCommitProvisionalLoadForFrame( 155 virtual void DidCommitProvisionalLoadForFrame(
156 int64 frame_id, 156 int64 frame_id,
157 bool is_main_frame, 157 bool is_main_frame,
158 const GURL& url, 158 const GURL& url,
159 content::PageTransition transition_type) OVERRIDE; 159 content::PageTransition transition_type,
160 content::RenderViewHost* render_view_host) OVERRIDE;
160 virtual void DidFailProvisionalLoad( 161 virtual void DidFailProvisionalLoad(
161 int64 frame_id, 162 int64 frame_id,
162 bool is_main_frame, 163 bool is_main_frame,
163 const GURL& validated_url, 164 const GURL& validated_url,
164 int error_code, 165 int error_code,
165 const string16& error_description) OVERRIDE; 166 const string16& error_description,
167 content::RenderViewHost* render_view_host) OVERRIDE;
166 virtual void DocumentLoadedInFrame(int64 frame_id) OVERRIDE; 168 virtual void DocumentLoadedInFrame(int64 frame_id) OVERRIDE;
167 virtual void DidFinishLoad(int64 frame_id, 169 virtual void DidFinishLoad(int64 frame_id,
168 const GURL& validated_url, 170 const GURL& validated_url,
169 bool is_main_frame) OVERRIDE; 171 bool is_main_frame) OVERRIDE;
170 virtual void DidOpenRequestedURL(content::WebContents* new_contents, 172 virtual void DidOpenRequestedURL(content::WebContents* new_contents,
171 const GURL& url, 173 const GURL& url,
172 const content::Referrer& referrer, 174 const content::Referrer& referrer,
173 WindowOpenDisposition disposition, 175 WindowOpenDisposition disposition,
174 content::PageTransition transition, 176 content::PageTransition transition,
175 int64 source_frame_id) OVERRIDE; 177 int64 source_frame_id) OVERRIDE;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // API function that returns the states of all frames in a given tab. 261 // API function that returns the states of all frames in a given tab.
260 class GetAllFramesFunction : public SyncExtensionFunction { 262 class GetAllFramesFunction : public SyncExtensionFunction {
261 virtual ~GetAllFramesFunction() {} 263 virtual ~GetAllFramesFunction() {}
262 virtual bool RunImpl() OVERRIDE; 264 virtual bool RunImpl() OVERRIDE;
263 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") 265 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames")
264 }; 266 };
265 267
266 } // namespace extensions 268 } // namespace extensions
267 269
268 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 270 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/web_navigation/web_navigation_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698