summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-21 22:11:42 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-21 22:11:42 +0000
commite16b8af74c13f79282c608042d92fc1000fb5e62 (patch)
tree98d6594941193b24caaf66bd956fc1ea9eef0b58 /webkit/tools
parent778574e9b16cb9438b5edb364e45bd88b02b2483 (diff)
downloadchromium_src-e16b8af74c13f79282c608042d92fc1000fb5e62.zip
chromium_src-e16b8af74c13f79282c608042d92fc1000fb5e62.tar.gz
chromium_src-e16b8af74c13f79282c608042d92fc1000fb5e62.tar.bz2
Plumbing to support loading from the "most appropriate" appcache.
BUG=68479 Review URL: http://codereview.chromium.org/6667057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/simple_appcache_system.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/simple_appcache_system.cc b/webkit/tools/test_shell/simple_appcache_system.cc
index c126849..af6242d 100644
--- a/webkit/tools/test_shell/simple_appcache_system.cc
+++ b/webkit/tools/test_shell/simple_appcache_system.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -199,6 +199,18 @@ class SimpleBackendProxy
}
}
+ virtual void SetSpawningHostId(int host_id, int spawning_host_id) {
+ if (system_->is_ui_thread()) {
+ system_->io_message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SimpleBackendProxy::SetSpawningHostId,
+ host_id, spawning_host_id));
+ } else if (system_->is_io_thread()) {
+ system_->backend_impl_->SetSpawningHostId(host_id, spawning_host_id);
+ } else {
+ NOTREACHED();
+ }
+ }
+
virtual void SelectCache(int host_id,
const GURL& document_url,
const int64 cache_document_was_loaded_from,