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

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: trybots ran with PS8, but one more safe change is added here Created 4 years, 3 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"
11 #include "base/process/kill.h" 11 #include "base/process/kill.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/browser/reload_type.h"
15 #include "content/public/common/frame_navigate_params.h" 16 #include "content/public/common/frame_navigate_params.h"
16 #include "content/public/common/media_metadata.h" 17 #include "content/public/common/media_metadata.h"
17 #include "content/public/common/resource_type.h" 18 #include "content/public/common/resource_type.h"
18 #include "content/public/common/security_style.h" 19 #include "content/public/common/security_style.h"
19 #include "ipc/ipc_listener.h" 20 #include "ipc/ipc_listener.h"
20 #include "ipc/ipc_sender.h" 21 #include "ipc/ipc_sender.h"
21 #include "third_party/WebKit/public/web/WebInputEvent.h" 22 #include "third_party/WebKit/public/web/WebInputEvent.h"
22 #include "third_party/skia/include/core/SkColor.h" 23 #include "third_party/skia/include/core/SkColor.h"
23 #include "ui/base/page_transition_types.h" 24 #include "ui/base/page_transition_types.h"
24 #include "ui/base/window_open_disposition.h" 25 #include "ui/base/window_open_disposition.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // This method is invoked after the browser process starts a navigation to a 187 // This method is invoked after the browser process starts a navigation to a
187 // pending NavigationEntry. It is not called for renderer-initiated 188 // pending NavigationEntry. It is not called for renderer-initiated
188 // navigations unless they are sent to the browser process via OpenURL. It may 189 // navigations unless they are sent to the browser process via OpenURL. It may
189 // be called multiple times for a given navigation, such as a typed URL 190 // be called multiple times for a given navigation, such as a typed URL
190 // followed by a cross-process client or server redirect. 191 // followed by a cross-process client or server redirect.
191 // 192 //
192 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In 193 // SOON TO BE DEPRECATED. Use DidStartNavigation instead in PlzNavigate. In
193 // default mode, it is still necessary to override this function to be 194 // default mode, it is still necessary to override this function to be
194 // notified about a navigation earlier than DidStartProvisionalLoad. This 195 // notified about a navigation earlier than DidStartProvisionalLoad. This
195 // function will be removed when PlzNavigate is enabled. 196 // function will be removed when PlzNavigate is enabled.
196 virtual void DidStartNavigationToPendingEntry( 197 virtual void DidStartNavigationToPendingEntry(const GURL& url,
197 const GURL& url, 198 ReloadType reload_type) {}
198 NavigationController::ReloadType reload_type) {}
199 199
200 // |render_frame_host| is the RenderFrameHost for which the provisional load 200 // |render_frame_host| is the RenderFrameHost for which the provisional load
201 // is happening. 201 // is happening.
202 // 202 //
203 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean 203 // Since the URL validation will strip error URLs, or srcdoc URLs, the boolean
204 // flags |is_error_page| and |is_iframe_srcdoc| will indicate that the not 204 // flags |is_error_page| and |is_iframe_srcdoc| will indicate that the not
205 // validated URL was either an error page or an iframe srcdoc. 205 // validated URL was either an error page or an iframe srcdoc.
206 // 206 //
207 // Note that during a cross-process navigation, several provisional loads 207 // Note that during a cross-process navigation, several provisional loads
208 // can be on-going in parallel. 208 // can be on-going in parallel.
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 void ResetWebContents(); 513 void ResetWebContents();
514 514
515 WebContentsImpl* web_contents_; 515 WebContentsImpl* web_contents_;
516 516
517 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 517 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
518 }; 518 };
519 519
520 } // namespace content 520 } // namespace content
521 521
522 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 522 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« content/public/browser/reload_type.h ('K') | « content/public/browser/web_contents_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698