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

Side by Side Diff: content/browser/nav_controller/nav_controller_dispatcher_host.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/nav_controller/nav_controller_dispatcher_host.h"
6
7 #include "content/browser/nav_controller/nav_controller_context.h"
8 #include "content/common/nav_controller/nav_controller_messages.h"
9 #include "ipc/ipc_message_macros.h"
10 #include "url/gurl.h"
11
12 namespace content {
13
14 NavControllerDispatcherHost::NavControllerDispatcherHost(
15 NavControllerContext* context)
16 : context_(context) {}
17
18 NavControllerDispatcherHost::~NavControllerDispatcherHost() {}
19
20 bool NavControllerDispatcherHost::OnMessageReceived(const IPC::Message& message,
21 bool* message_was_ok) {
22
23 if (IPC_MESSAGE_CLASS(message) != NavControllerMsgStart)
24 return false;
25
26 bool handled = true;
27 IPC_BEGIN_MESSAGE_MAP_EX(
28 NavControllerDispatcherHost, message, *message_was_ok)
29 IPC_MESSAGE_HANDLER(NavControllerHostMsg_RegisterController,
30 OnRegisterController)
31 IPC_MESSAGE_HANDLER(NavControllerHostMsg_UnregisterController,
32 OnUnregisterController)
33 IPC_MESSAGE_UNHANDLED(handled = false)
34 IPC_END_MESSAGE_MAP()
35
36 return handled;
37 }
38
39 void NavControllerDispatcherHost::OnRegisterController(int32 registry_id,
40 const string16& scope,
41 const GURL& script_url) {
42 }
Tom Sepez 2013/09/13 21:48:34 Are there constraints on what the script_url can b
michaeln 2013/09/13 22:00:02 Actually this is a good example of why it's useful
43
44 void NavControllerDispatcherHost::OnUnregisterController(
45 int32 registry_id,
46 const string16& scope) {}
47
48 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698