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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/navigator_observer.h
diff --git a/content/browser/renderer_host/navigator_observer.h b/content/browser/renderer_host/navigator_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..eae4046ec88c7b32f3d0ac128c8dbfa15d59fdcd
--- /dev/null
+++ b/content/browser/renderer_host/navigator_observer.h
@@ -0,0 +1,42 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_
+
+#include "ipc/ipc_listener.h"
+
+class GURL;
+
+namespace content {
+
+class RenderFrameHost;
+
+// An observer API which is a subset of WebContentsObserver but restricted
+// to navigation related events.
+class NavigatorObserver { //: public IPC::Listener {
+
+ public:
+ virtual void DidStartProvisionalLoad(
+ int64 frame_id,
+ int64 parent_frame_id,
+ bool is_main_frame,
+ const GURL& validated_url,
+ bool is_error_page,
+ bool is_iframe_srcdoc,
+ RenderFrameHost* render_frame_host) {}
+
+ virtual void ProvisionalChangeToMainFrameUrl(
+ const GURL& url,
+ RenderFrameHost* render_frame_host) {}
+
+ virtual void NavigationStateChanged(unsigned changed_flags) {}
+
+ private:
+
+};
+
+}
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698