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

Unified Diff: content/browser/nav_controller/nav_controller_dispatcher_host.h

Issue 23615009: Stub out initial NavigationController browser implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments, s/peer/registry/ now that blink side is settled Created 7 years, 3 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/nav_controller/nav_controller_dispatcher_host.h
diff --git a/content/browser/nav_controller/nav_controller_dispatcher_host.h b/content/browser/nav_controller/nav_controller_dispatcher_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..2740d989340d102aecf82cd51222255e21d19543
--- /dev/null
+++ b/content/browser/nav_controller/nav_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_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_
+#define CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_
+
+#include "content/public/browser/browser_message_filter.h"
+
+class GURL;
+
+namespace content {
+
+class NavControllerContext;
+
+class NavControllerDispatcherHost : public BrowserMessageFilter {
+ public:
+ explicit NavControllerDispatcherHost(NavControllerContext* context);
+
+ // BrowserIOMessageFilter implementation
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+
+ protected:
+ virtual ~NavControllerDispatcherHost();
+
+ private:
+ // IPC Message handlers
+
+ void OnRegisterController(int32 registry_id,
+ const string16& scope,
+ const GURL& script_url);
+ void OnUnregisterController(int32 registry_id, const string16& scope);
+
+ scoped_refptr<NavControllerContext> context_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_DISPATCHER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698