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

Unified Diff: content/browser/frame_host/navigator_delegate.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_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..dff15c08c56c1ada8a384a85bf3bc8707321eb1b
--- /dev/null
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -0,0 +1,38 @@
+// 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_DELEGATE_H_
+#define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
+
+class GURL;
+
+namespace content {
+
+class RenderFrameHost;
+
+// A delegate API used by Navigator to notify its embedder of navigation
+// related events.
+class NavigatorDelegate {
+
+ 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) = 0;
+
+ virtual void ProvisionalChangeToMainFrameUrl(
+ const GURL& url,
+ RenderFrameHost* render_frame_host) = 0;
+
+ virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
+
+ private:
+};
+
+} // namspace content
+
+#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698