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_ |