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

Unified Diff: content/browser/frame_host/navigator.h

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NavigatorDelegate Created 7 years, 1 month 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/frame_host/navigator.h
diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f6c08fc9e96f74d36e6790767656990794192ed
--- /dev/null
+++ b/content/browser/frame_host/navigator.h
@@ -0,0 +1,49 @@
+// 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_FRAME_HOST_NAVIGATOR_H_
+#define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
+
+#include "base/i18n/rtl.h"
+
+class GURL;
+
+namespace content {
+
+class NavigationControllerImpl;
+class NavigatorDelegate;
+class NavigatorObserver;
+class RenderFrameHost;
+
+class Navigator {
+ public:
+ Navigator(
+ NavigationControllerImpl* nav_controller,
+ NavigatorDelegate* delegate);
+
+ // The RenderFrame started a provisional load.
+ void DidStartProvisionalLoad(
+ RenderFrameHost* render_frame_host,
+ int64 frame_id,
Charlie Reis 2013/11/07 01:22:43 Do we need to take in the frame_id and parent_fram
+ int64 parent_frame_id,
+ bool main_frame,
+ const GURL& url);
+
+ NavigationControllerImpl* controller() {
+ return controller_;
+ }
+
+ NavigatorDelegate* delegate() {
+ return delegate_;
+ }
+
+ private:
+ NavigationControllerImpl* controller_;
+
+ NavigatorDelegate* delegate_;
+};
+
+}
awong 2013/11/06 21:22:59 nit: } // namespace content
+
+#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_

Powered by Google App Engine
This is Rietveld 408576698