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

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

Issue 2534393003: (Reland) Remove about:srcdoc url conversion. (Closed)
Patch Set: Rebase. Created 4 years 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In 201 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In
202 // default mode, it is still necessary to override this function to be 202 // default mode, it is still necessary to override this function to be
203 // notified about a navigation earlier than DidStartProvisionalLoad. This 203 // notified about a navigation earlier than DidStartProvisionalLoad. This
204 // function will be removed when PlzNavigate is enabled. 204 // function will be removed when PlzNavigate is enabled.
205 virtual void DidStartNavigationToPendingEntry(const GURL& url, 205 virtual void DidStartNavigationToPendingEntry(const GURL& url,
206 ReloadType reload_type) {} 206 ReloadType reload_type) {}
207 207
208 // |render_frame_host| is the RenderFrameHost for which the provisional load 208 // |render_frame_host| is the RenderFrameHost for which the provisional load
209 // is happening. 209 // is happening.
210 // 210 //
211 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean 211 // Since the URL validation will strip error URLs, the boolean flag
212 // flags |is_error_page| and |is_iframe_srcdoc| will indicate that the not 212 // |is_error_page| will indicate that the not validated URL was an error page.
213 // validated URL was either an error page or an iframe srcdoc.
214 // 213 //
215 // Note that during a cross-process navigation, several provisional loads 214 // Note that during a cross-process navigation, several provisional loads
216 // can be on-going in parallel. 215 // can be on-going in parallel.
217 // 216 //
218 // DEPRECATED. Use DidStartNavigation instead in all cases. 217 // DEPRECATED. Use DidStartNavigation instead in all cases.
219 virtual void DidStartProvisionalLoadForFrame( 218 virtual void DidStartProvisionalLoadForFrame(
220 RenderFrameHost* render_frame_host, 219 RenderFrameHost* render_frame_host,
221 const GURL& validated_url, 220 const GURL& validated_url,
222 bool is_error_page, 221 bool is_error_page) {}
223 bool is_iframe_srcdoc) {}
224 222
225 // This method is invoked when the provisional load was successfully 223 // This method is invoked when the provisional load was successfully
226 // committed. 224 // committed.
227 // 225 //
228 // If the navigation only changed the reference fragment, or was triggered 226 // If the navigation only changed the reference fragment, or was triggered
229 // using the history API (e.g. window.history.replaceState), we will receive 227 // using the history API (e.g. window.history.replaceState), we will receive
230 // this signal without a prior DidStartProvisionalLoadForFrame signal. 228 // this signal without a prior DidStartProvisionalLoadForFrame signal.
231 // 229 //
232 // DEPRECATED. Use DidFinishNavigation instead in all cases. 230 // DEPRECATED. Use DidFinishNavigation instead in all cases.
233 virtual void DidCommitProvisionalLoadForFrame( 231 virtual void DidCommitProvisionalLoadForFrame(
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 void ResetWebContents(); 519 void ResetWebContents();
522 520
523 WebContentsImpl* web_contents_; 521 WebContentsImpl* web_contents_;
524 522
525 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 523 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
526 }; 524 };
527 525
528 } // namespace content 526 } // namespace content
529 527
530 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 528 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_handle.cc ('k') | content/public/test/test_frame_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698