diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 20:00:11 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 20:00:11 +0000 |
commit | 6c270d442c1ee1a526538b8530e6198a9ada90e4 (patch) | |
tree | 5e5ccfbcd54cc59bbb250a233cf128df9dac5fab /webkit/tools/test_shell/simple_appcache_system.h | |
parent | e10d86c2067313fa2cdc8684b5f0904b0d8d985e (diff) | |
download | chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.zip chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.tar.gz chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.tar.bz2 |
1) Tell the AppCacheService which request context to use when fetching resources for updates. Done for both chrome and test_shell. The service does not yet take a reference to that context, because the extra reference apparently gives some tests grief.
2) Added methods to generate new storage ids for different object types on the IO thread.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/195077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/simple_appcache_system.h')
-rw-r--r-- | webkit/tools/test_shell/simple_appcache_system.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/simple_appcache_system.h b/webkit/tools/test_shell/simple_appcache_system.h index 184842f..c029051 100644 --- a/webkit/tools/test_shell/simple_appcache_system.h +++ b/webkit/tools/test_shell/simple_appcache_system.h @@ -19,6 +19,7 @@ class WebApplicationCacheHostClient; class SimpleBackendProxy; class SimpleFrontendProxy; class URLRequest; +class URLRequestContext; // A class that composes the constituent parts of an appcache system // together for use in a single process with two relavant threads, @@ -43,9 +44,9 @@ class SimpleAppCacheSystem : public MessageLoop::DestructionObserver { // at a time, but after IO thread termination a new one can be // started on which this method should be called. The instance // is assumed to outlive the IO thread. - static void InitializeOnIOThread() { + static void InitializeOnIOThread(URLRequestContext* request_context) { if (instance_) - instance_->InitOnIOThread(); + instance_->InitOnIOThread(request_context); } // Called by TestShellWebKitInit to manufacture a 'host' for webcore. @@ -79,7 +80,7 @@ class SimpleAppCacheSystem : public MessageLoop::DestructionObserver { // Instance methods called by our static public methods void InitOnUIThread(const FilePath& cache_directory); - void InitOnIOThread(); + void InitOnIOThread(URLRequestContext* request_context); WebKit::WebApplicationCacheHost* CreateCacheHostForWebKit( WebKit::WebApplicationCacheHostClient* client); void SetExtraRequestBits(URLRequest* request, |