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

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

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+ Created 4 years, 4 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // This method is invoked after the browser process starts a navigation to a 185 // This method is invoked after the browser process starts a navigation to a
186 // pending NavigationEntry. It is not called for renderer-initiated 186 // pending NavigationEntry. It is not called for renderer-initiated
187 // navigations unless they are sent to the browser process via OpenURL. It may 187 // navigations unless they are sent to the browser process via OpenURL. It may
188 // be called multiple times for a given navigation, such as a typed URL 188 // be called multiple times for a given navigation, such as a typed URL
189 // followed by a cross-process client or server redirect. 189 // followed by a cross-process client or server redirect.
190 // 190 //
191 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In 191 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In
192 // default mode, it is still necessary to override this function to be 192 // default mode, it is still necessary to override this function to be
193 // notified about a navigation earlier than DidStartProvisionalLoad. This 193 // notified about a navigation earlier than DidStartProvisionalLoad. This
194 // function will be removed when PlzNavigate is enabled. 194 // function will be removed when PlzNavigate is enabled.
195 virtual void DidStartNavigationToPendingEntry( 195 virtual void DidStartNavigationToPendingEntry(const GURL& url,
196 const GURL& url, 196 ReloadType reload_type) {}
197 NavigationController::ReloadType reload_type) {}
198 197
199 // |render_frame_host| is the RenderFrameHost for which the provisional load 198 // |render_frame_host| is the RenderFrameHost for which the provisional load
200 // is happening. 199 // is happening.
201 // 200 //
202 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean 201 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean
203 // flags |is_error_page| and |is_iframe_srcdoc| will indicate that the not 202 // flags |is_error_page| and |is_iframe_srcdoc| will indicate that the not
204 // validated URL was either an error page or an iframe srcdoc. 203 // validated URL was either an error page or an iframe srcdoc.
205 // 204 //
206 // Note that during a cross-process navigation, several provisional loads 205 // Note that during a cross-process navigation, several provisional loads
207 // can be on-going in parallel. 206 // can be on-going in parallel.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 void ResetWebContents(); 504 void ResetWebContents();
506 505
507 WebContentsImpl* web_contents_; 506 WebContentsImpl* web_contents_;
508 507
509 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 508 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
510 }; 509 };
511 510
512 } // namespace content 511 } // namespace content
513 512
514 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 513 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698