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

Side by Side Diff: content/public/browser/web_contents_observer.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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void NavigateToPendingEntry( 42 virtual void NavigateToPendingEntry(
43 const GURL& url, 43 const GURL& url,
44 NavigationController::ReloadType reload_type) {} 44 NavigationController::ReloadType reload_type) {}
45 virtual void DidNavigateMainFrame( 45 virtual void DidNavigateMainFrame(
46 const LoadCommittedDetails& details, 46 const LoadCommittedDetails& details,
47 const FrameNavigateParams& params) {} 47 const FrameNavigateParams& params) {}
48 virtual void DidNavigateAnyFrame( 48 virtual void DidNavigateAnyFrame(
49 const LoadCommittedDetails& details, 49 const LoadCommittedDetails& details,
50 const FrameNavigateParams& params) {} 50 const FrameNavigateParams& params) {}
51 // |render_view_host| is the RenderViewHost for which the provisional load is 51 // |render_view_host| is the RenderViewHost for which the provisional load is
52 // happening. 52 // happening. |frame_id| is a positive, non-zero integer identifying the
53 // navigating frame in the given |render_view_host|. |parent_frame_id| is the
54 // frame identifier of the frame containing the navigating frame, or -1 if the
55 // frame is not contained in another frame.
53 virtual void DidStartProvisionalLoadForFrame( 56 virtual void DidStartProvisionalLoadForFrame(
54 int64 frame_id, 57 int64 frame_id,
58 int64 parent_frame_id,
55 bool is_main_frame, 59 bool is_main_frame,
56 const GURL& validated_url, 60 const GURL& validated_url,
57 bool is_error_page, 61 bool is_error_page,
58 RenderViewHost* render_view_host) {} 62 RenderViewHost* render_view_host) {}
59 virtual void ProvisionalChangeToMainFrameUrl( 63 virtual void ProvisionalChangeToMainFrameUrl(
60 const GURL& url, 64 const GURL& url,
61 const GURL& opener_url, 65 const GURL& opener_url,
62 RenderViewHost* render_view_host) {} 66 RenderViewHost* render_view_host) {}
63 virtual void DidCommitProvisionalLoadForFrame( 67 virtual void DidCommitProvisionalLoadForFrame(
64 int64 frame_id, 68 int64 frame_id,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void WebContentsImplDestroyed(); 182 void WebContentsImplDestroyed();
179 183
180 WebContentsImpl* web_contents_; 184 WebContentsImpl* web_contents_;
181 185
182 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 186 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
183 }; 187 };
184 188
185 } // namespace content 189 } // namespace content
186 190
187 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 191 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698