Index: content/browser/navigation_controller/navigation_controller_dispatcher_host.h |
diff --git a/content/browser/navigation_controller/navigation_controller_dispatcher_host.h b/content/browser/navigation_controller/navigation_controller_dispatcher_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c9228ade31d10373aebb167d821f1f0bc4969d9 |
--- /dev/null |
+++ b/content/browser/navigation_controller/navigation_controller_dispatcher_host.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_NAVIGATION_CONTROLLER_NAVIGATION_CONTROLLER_DISPATCHER_HOST_H_ |
+#define CONTENT_BROWSER_NAVIGATION_CONTROLLER_NAVIGATION_CONTROLLER_DISPATCHER_HOST_H_ |
+ |
+#include "content/public/browser/browser_message_filter.h" |
+ |
+class GURL; |
+ |
+namespace content { |
+ |
+class NavigationControllerContext; |
+ |
+class NavigationControllerDispatcherHost : public BrowserMessageFilter { |
+ public: |
+ explicit NavigationControllerDispatcherHost( |
+ NavigationControllerContext* context); |
+ |
+ // BrowserIOMessageFilter implementation |
+ virtual bool OnMessageReceived(const IPC::Message& message, |
+ bool* message_was_ok) OVERRIDE; |
+ |
+ protected: |
+ virtual ~NavigationControllerDispatcherHost(); |
+ |
+ private: |
+ // IPC Message handlers |
+ void OnRegisterController(int32 host_id, |
+ const string16& scope, |
+ const GURL& script_url); |
+ void OnUnregisterController(int32 host_id, const string16& scope); |
+ |
+ scoped_refptr<NavigationControllerContext> context_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_NAVIGATION_CONTROLLER_NAVIGATION_CONTROLLER_DISPATCHER_HOST_H_ |