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

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

Issue 11090068: When starting a provisional load include the parent frame ID in the IPC and pass it down the th WCO… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updatess Created 8 years, 2 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void Observe(int type, 48 virtual void Observe(int type,
49 const content::NotificationSource& source, 49 const content::NotificationSource& source,
50 const content::NotificationDetails& details) OVERRIDE; 50 const content::NotificationDetails& details) OVERRIDE;
51 51
52 52
53 // content::WebContentsObserver implementation. 53 // content::WebContentsObserver implementation.
54 virtual void AboutToNavigateRenderView( 54 virtual void AboutToNavigateRenderView(
55 content::RenderViewHost* render_view_host) OVERRIDE; 55 content::RenderViewHost* render_view_host) OVERRIDE;
56 virtual void DidStartProvisionalLoadForFrame( 56 virtual void DidStartProvisionalLoadForFrame(
57 int64 frame_num, 57 int64 frame_num,
58 int64 parent_frame_num,
58 bool is_main_frame, 59 bool is_main_frame,
59 const GURL& validated_url, 60 const GURL& validated_url,
60 bool is_error_page, 61 bool is_error_page,
61 content::RenderViewHost* render_view_host) OVERRIDE; 62 content::RenderViewHost* render_view_host) OVERRIDE;
62 virtual void DidCommitProvisionalLoadForFrame( 63 virtual void DidCommitProvisionalLoadForFrame(
63 int64 frame_num, 64 int64 frame_num,
64 bool is_main_frame, 65 bool is_main_frame,
65 const GURL& url, 66 const GURL& url,
66 content::PageTransition transition_type, 67 content::PageTransition transition_type,
67 content::RenderViewHost* render_view_host) OVERRIDE; 68 content::RenderViewHost* render_view_host) OVERRIDE;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // API function that returns the states of all frames in a given tab. 211 // API function that returns the states of all frames in a given tab.
211 class GetAllFramesFunction : public SyncExtensionFunction { 212 class GetAllFramesFunction : public SyncExtensionFunction {
212 virtual ~GetAllFramesFunction() {} 213 virtual ~GetAllFramesFunction() {}
213 virtual bool RunImpl() OVERRIDE; 214 virtual bool RunImpl() OVERRIDE;
214 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") 215 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames")
215 }; 216 };
216 217
217 } // namespace extensions 218 } // namespace extensions
218 219
219 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 220 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698