From 23f1ef1a445a53bcefc8ddab9f4184b1db7321c5 Mon Sep 17 00:00:00 2001 From: "michaeln@google.com" Date: Tue, 1 Sep 2009 22:30:30 +0000 Subject: Plumb request interception into the appcache library for both chrome and test_shell. AppCache library: * Added AppCacheInterceptor, which is derived from URLRequest::Interceptor. Chrome: * Each UserProfile instantiates a ChromeAppCacheService, which is derived from an appcache library class. * Each ChromeURLRequestContext associated with that profile has a reference to that instance. * ResourceDispatcherHost pokes AppCacheInterceptor when initiating URLRequests and when returning the response head. TestShell: * Added SimpleAppCacheSystem which bundles together appcache lib components for use in a single process with an UI and IO thread. * TestShellWebKit instantiates and initializes an instance of the above, aimed at at temp directory that will get cleaned up when the test run is over. * SimpleResourceLoaderBridge pokes the system when initiating URLRequests and when returning the response head. TEST=none, although many existing tests exercise this stuff BUG=none Review URL: http://codereview.chromium.org/173406 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25099 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_host.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webkit/appcache/appcache_host.h') diff --git a/webkit/appcache/appcache_host.h b/webkit/appcache/appcache_host.h index 439e042..bebc22d 100644 --- a/webkit/appcache/appcache_host.h +++ b/webkit/appcache/appcache_host.h @@ -24,6 +24,10 @@ class AppCacheHost { selected_cache_ = cache; } + bool is_selection_pending() { + return false; // TODO(michaeln) + } + private: // identifies the corresponding appcache host in the child process int host_id_; -- cgit v1.1