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

Unified Diff: content/browser/renderer_host/navigator.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.h
diff --git a/content/browser/renderer_host/navigator.h b/content/browser/renderer_host/navigator.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c11f194f0e8477946f8d56590c893710f2d4b59
--- /dev/null
+++ b/content/browser/renderer_host/navigator.h
@@ -0,0 +1,40 @@
+// 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_H_
+#define CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_H_
+
+#include "base/i18n/rtl.h"
+
+class GURL;
+
+namespace content {
+
+class NavigationControllerImpl;
+class NavigatorObserver;
+class RenderFrameHost;
+
+class Navigator {
+ public:
+ explicit Navigator(
+ NavigationControllerImpl* nav_controller,
Charlie Reis 2013/10/17 00:17:25 nit: This looks like it can fit on the previous li
+ NavigatorObserver* observer);
+
+ // The RenderFrame started a provisional load.
+ void DidStartProvisionalLoad(
+ RenderFrameHost* render_frame_host,
Charlie Reis 2013/10/17 00:17:25 Same here.
+ int64 frame_id,
+ int64 parent_frame_id,
+ bool main_frame,
+ const GURL& url);
+
+ private:
+ NavigationControllerImpl* controller_;
+
+ NavigatorObserver* observer_;
Charlie Reis 2013/10/17 00:17:25 Perhaps this should be an ObserverList, as in WebC
+};
+
+}
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_H_

Powered by Google App Engine
This is Rietveld 408576698