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

Side by Side Diff: content/browser/renderer_host/navigator_observer.h

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial upload Created 7 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_
7
8 #include "ipc/ipc_listener.h"
9
10 class GURL;
11
12 namespace content {
13
14 class RenderFrameHost;
15
16 // An observer API which is a subset of WebContentsObserver but restricted
17 // to navigation related events.
18 class NavigatorObserver { //: public IPC::Listener {
19
20 public:
21 virtual void DidStartProvisionalLoad(
22 int64 frame_id,
23 int64 parent_frame_id,
24 bool is_main_frame,
25 const GURL& validated_url,
26 bool is_error_page,
27 bool is_iframe_srcdoc,
28 RenderFrameHost* render_frame_host) {}
29
30 virtual void ProvisionalChangeToMainFrameUrl(
31 const GURL& url,
32 RenderFrameHost* render_frame_host) {}
33
34 virtual void NavigationStateChanged(unsigned changed_flags) {}
35
36 private:
37
38 };
39
40 }
41
42 #endif // CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698