Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: content/worker/worker_webapplicationcachehost_impl.h

Issue 161573002: Implement new willStartMainResourceRequest method of blink::WebApplicationCacheHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add no-op worker overload Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ 5 #ifndef CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
6 #define CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ 6 #define CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
7 7
8 #include "content/child/appcache/web_application_cache_host_impl.h" 8 #include "content/child/appcache/web_application_cache_host_impl.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class WorkerWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl { 12 class WorkerWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl {
13 public: 13 public:
14 WorkerWebApplicationCacheHostImpl( 14 WorkerWebApplicationCacheHostImpl(
15 blink::WebApplicationCacheHostClient* client); 15 blink::WebApplicationCacheHostClient* client);
16 16
17 // Main resource loading is different for workers. The main resource is 17 // Main resource loading is different for workers. The main resource is
18 // loaded by the worker using WorkerScriptLoader. 18 // loaded by the worker using WorkerScriptLoader.
19 // These overrides are stubbed out. 19 // These overrides are stubbed out.
20 virtual void willStartMainResourceRequest( 20 virtual void willStartMainResourceRequest(
21 blink::WebURLRequest&, const blink::WebFrame*); 21 blink::WebURLRequest&, const blink::WebFrame*);
22 virtual void willStartMainResourceRequest(
23 blink::WebURLRequest&, const blink::WebApplicationCacheHost*);
22 virtual void didReceiveResponseForMainResource( 24 virtual void didReceiveResponseForMainResource(
23 const blink::WebURLResponse&); 25 const blink::WebURLResponse&);
24 virtual void didReceiveDataForMainResource(const char* data, int len); 26 virtual void didReceiveDataForMainResource(const char* data, int len);
25 virtual void didFinishLoadingMainResource(bool success); 27 virtual void didFinishLoadingMainResource(bool success);
26 28
27 // Cache selection is also different for workers. We know at construction 29 // Cache selection is also different for workers. We know at construction
28 // time what cache to select and do so then. 30 // time what cache to select and do so then.
29 // These overrides are stubbed out. 31 // These overrides are stubbed out.
30 virtual void selectCacheWithoutManifest(); 32 virtual void selectCacheWithoutManifest();
31 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); 33 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL);
32 }; 34 };
33 35
34 } // namespace content 36 } // namespace content
35 37
36 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ 38 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/appcache/web_application_cache_host_impl.cc ('k') | content/worker/worker_webapplicationcachehost_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698