OLD | NEW |
(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/navigation_controller/navigation_controller_dispatcher
_host.h" |
| 6 |
| 7 #include "content/browser/navigation_controller/navigation_controller_context.h" |
| 8 #include "content/common/navigation_controller/navigation_controller_messages.h" |
| 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "url/gurl.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 NavigationControllerDispatcherHost::NavigationControllerDispatcherHost( |
| 15 NavigationControllerContext* context) |
| 16 : context_(context) {} |
| 17 |
| 18 NavigationControllerDispatcherHost::~NavigationControllerDispatcherHost() {} |
| 19 |
| 20 bool NavigationControllerDispatcherHost::OnMessageReceived( |
| 21 const IPC::Message& message, |
| 22 bool* message_was_ok) { |
| 23 |
| 24 if (IPC_MESSAGE_CLASS(message) != NavigationControllerMsgStart) |
| 25 return false; |
| 26 |
| 27 bool handled = true; |
| 28 IPC_BEGIN_MESSAGE_MAP_EX( |
| 29 NavigationControllerDispatcherHost, message, *message_was_ok) |
| 30 IPC_MESSAGE_HANDLER(NavigationControllerHostMsg_RegisterController, |
| 31 OnRegisterController) |
| 32 IPC_MESSAGE_HANDLER(NavigationControllerHostMsg_UnregisterController, |
| 33 OnUnregisterController) |
| 34 IPC_MESSAGE_UNHANDLED(handled = false) |
| 35 IPC_END_MESSAGE_MAP() |
| 36 |
| 37 return handled; |
| 38 } |
| 39 |
| 40 void NavigationControllerDispatcherHost::OnRegisterController( |
| 41 int32 host_id, |
| 42 const string16& scope, |
| 43 const GURL& script_url) {} |
| 44 |
| 45 void NavigationControllerDispatcherHost::OnUnregisterController( |
| 46 int32 host_id, |
| 47 const string16& scope) {} |
| 48 |
| 49 } // namespace content |
OLD | NEW |