| Index: content/browser/navigation_controller/navigation_controller_dispatcher_host.cc
|
| diff --git a/content/browser/navigation_controller/navigation_controller_dispatcher_host.cc b/content/browser/navigation_controller/navigation_controller_dispatcher_host.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5f7dc5425e26273d691c91cd6003c7033f5ba12b
|
| --- /dev/null
|
| +++ b/content/browser/navigation_controller/navigation_controller_dispatcher_host.cc
|
| @@ -0,0 +1,49 @@
|
| +// 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.
|
| +
|
| +#include "content/browser/navigation_controller/navigation_controller_dispatcher_host.h"
|
| +
|
| +#include "content/browser/navigation_controller/navigation_controller_context.h"
|
| +#include "content/common/navigation_controller/navigation_controller_messages.h"
|
| +#include "ipc/ipc_message_macros.h"
|
| +#include "url/gurl.h"
|
| +
|
| +namespace content {
|
| +
|
| +NavigationControllerDispatcherHost::NavigationControllerDispatcherHost(
|
| + NavigationControllerContext* context)
|
| + : context_(context) {}
|
| +
|
| +NavigationControllerDispatcherHost::~NavigationControllerDispatcherHost() {}
|
| +
|
| +bool NavigationControllerDispatcherHost::OnMessageReceived(
|
| + const IPC::Message& message,
|
| + bool* message_was_ok) {
|
| +
|
| + if (IPC_MESSAGE_CLASS(message) != NavigationControllerMsgStart)
|
| + return false;
|
| +
|
| + bool handled = true;
|
| + IPC_BEGIN_MESSAGE_MAP_EX(
|
| + NavigationControllerDispatcherHost, message, *message_was_ok)
|
| + IPC_MESSAGE_HANDLER(NavigationControllerHostMsg_RegisterController,
|
| + OnRegisterController)
|
| + IPC_MESSAGE_HANDLER(NavigationControllerHostMsg_UnregisterController,
|
| + OnUnregisterController)
|
| + IPC_MESSAGE_UNHANDLED(handled = false)
|
| + IPC_END_MESSAGE_MAP()
|
| +
|
| + return handled;
|
| +}
|
| +
|
| +void NavigationControllerDispatcherHost::OnRegisterController(
|
| + int32 host_id,
|
| + const string16& scope,
|
| + const GURL& script_url) {}
|
| +
|
| +void NavigationControllerDispatcherHost::OnUnregisterController(
|
| + int32 host_id,
|
| + const string16& scope) {}
|
| +
|
| +} // namespace content
|
|
|