summaryrefslogtreecommitdiffstats
path: root/chrome/common/resource_dispatcher_dummy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/resource_dispatcher_dummy.cc')
-rw-r--r--chrome/common/resource_dispatcher_dummy.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/common/resource_dispatcher_dummy.cc b/chrome/common/resource_dispatcher_dummy.cc
new file mode 100644
index 0000000..f047b34
--- /dev/null
+++ b/chrome/common/resource_dispatcher_dummy.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2006-2008 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.
+
+// See http://dev.chromium.org/developers/design-documents/multi-process-resource-loading
+
+#include "chrome/common/resource_dispatcher.h"
+
+#include "base/compiler_specific.h"
+
+// ResourceDispatcher ---------------------------------------------------------
+
+ResourceDispatcher::ResourceDispatcher(IPC::Message::Sender* sender)
+ : message_sender_(sender),
+ ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
+}
+
+ResourceDispatcher::~ResourceDispatcher() {
+}
+
+// ResourceDispatcher implementation ------------------------------------------
+
+bool ResourceDispatcher::OnMessageReceived(const IPC::Message& message) {
+ return false;
+}
+
+webkit_glue::ResourceLoaderBridge* ResourceDispatcher::CreateBridge(
+ const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info,
+ int host_renderer_id,
+ int host_render_view_id) {
+ // This function is used only by plugin and renderer code, so it should
+ // never be called in a 64-bit Windows process.
+ NOTREACHED();
+ return NULL;
+}