summaryrefslogtreecommitdiffstats
path: root/chrome/common/resource_dispatcher_dummy.cc
diff options
context:
space:
mode:
authorgregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 20:30:46 +0000
committergregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 20:30:46 +0000
commitdd36368e83b0a988294e0f80e73d910dae00adfd (patch)
tree25a5492827da91b861d4377e93297472dfd1fd4a /chrome/common/resource_dispatcher_dummy.cc
parent1aa74be036b0319e55a2668f30f74cdfe8b4c8b7 (diff)
downloadchromium_src-dd36368e83b0a988294e0f80e73d910dae00adfd.zip
chromium_src-dd36368e83b0a988294e0f80e73d910dae00adfd.tar.gz
chromium_src-dd36368e83b0a988294e0f80e73d910dae00adfd.tar.bz2
Split more targets from chrome.gyp to add support for building Native Client for 64-bit Windows.
This CL is required for supporting Native Client on 64-bit Windows. On Win64 we will use a 64-bit executable to load NaCl modules. Since we have only one version of Chrome on Windows, this executable has to be built together with 32-bit Chrome binaries. For the targets that are required for both 32-bit and 64-bit builds, this CL moves the shared parts of the target definitions into target-specific gypi files (such as base.gypi). New 64-bit only targets are added. Since we would like to port as few code as possible at this point, some 64-bit targets include less source files or less dependencies than the original 32-bit targets. These targets will have nacl_win64 in their name - to emphasize that they should be used for NaCl only. Some 64-bit targets are identical to the 32-bit targets in everything except for the target platform - these will have only win64 in their name. TEST=none BUG=28176 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35237 Review URL: http://codereview.chromium.org/384068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35305 0039d316-1c4b-4281-b951-d872f2087c98
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;
+}