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

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 129813006: Move DidReceiveServerRedirectForProvisionalLoad from RenderView to RenderFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix layout test failures. Created 6 years, 11 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_frame_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/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool is_error_page, 118 bool is_error_page,
119 bool is_iframe_srcdoc, 119 bool is_iframe_srcdoc,
120 RenderViewHost* render_view_host) {} 120 RenderViewHost* render_view_host) {}
121 121
122 // This method is invoked right after the DidStartProvisionalLoadForFrame if 122 // This method is invoked right after the DidStartProvisionalLoadForFrame if
123 // the provisional load affects the main frame, or if the provisional load 123 // the provisional load affects the main frame, or if the provisional load
124 // was redirected. The latter use case is DEPRECATED. You should listen to 124 // was redirected. The latter use case is DEPRECATED. You should listen to
125 // WebContentsObserver::DidGetRedirectForResourceRequest instead. 125 // WebContentsObserver::DidGetRedirectForResourceRequest instead.
126 virtual void ProvisionalChangeToMainFrameUrl( 126 virtual void ProvisionalChangeToMainFrameUrl(
127 const GURL& url, 127 const GURL& url,
128 RenderViewHost* render_view_host) {} 128 RenderFrameHost* render_frame_host) {}
129 129
130 // This method is invoked when the provisional load was successfully 130 // This method is invoked when the provisional load was successfully
131 // committed. The |render_view_host| is now the current RenderViewHost of the 131 // committed. The |render_view_host| is now the current RenderViewHost of the
132 // WebContents. 132 // WebContents.
133 // 133 //
134 // If the navigation only changed the reference fragment, or was triggered 134 // If the navigation only changed the reference fragment, or was triggered
135 // using the history API (e.g. window.history.replaceState), we will receive 135 // using the history API (e.g. window.history.replaceState), we will receive
136 // this signal without a prior DidStartProvisionalLoadForFrame signal. 136 // this signal without a prior DidStartProvisionalLoadForFrame signal.
137 virtual void DidCommitProvisionalLoadForFrame( 137 virtual void DidCommitProvisionalLoadForFrame(
138 int64 frame_id, 138 int64 frame_id,
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void WebContentsImplDestroyed(); 353 void WebContentsImplDestroyed();
354 354
355 WebContentsImpl* web_contents_; 355 WebContentsImpl* web_contents_;
356 356
357 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 357 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
358 }; 358 };
359 359
360 } // namespace content 360 } // namespace content
361 361
362 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 362 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698