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

Unified Diff: content/worker/worker_webapplicationcachehost_impl.h

Issue 133093003: Move the worker script loading code to the worker process (phase:4/5) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02ScriptLoadInWorkerChrome
Patch Set: change comments in worker_webapplicationcachehost_impl.h and rebase. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/worker/worker_webapplicationcachehost_impl.h
diff --git a/content/worker/worker_webapplicationcachehost_impl.h b/content/worker/worker_webapplicationcachehost_impl.h
index 6f8385cb035c1d37f44801c2d6cf7baf97639dd2..9662559ee3b3589ebd5517dd1fa84a12ddb51186 100644
--- a/content/worker/worker_webapplicationcachehost_impl.h
+++ b/content/worker/worker_webapplicationcachehost_impl.h
@@ -9,31 +9,13 @@
namespace content {
-// Information used to construct and initialize an appcache host
-// for a worker.
-struct WorkerAppCacheInitInfo {
- int parent_process_id;
- int64 main_resource_appcache_id; // Only valid for shared workers.
-
- WorkerAppCacheInitInfo()
- : parent_process_id(0),
- main_resource_appcache_id(0) {
- }
- WorkerAppCacheInitInfo(
- int process_id, int64 cache_id)
- : parent_process_id(process_id),
- main_resource_appcache_id(cache_id) {
- }
-};
-
class WorkerWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl {
public:
WorkerWebApplicationCacheHostImpl(
- const WorkerAppCacheInitInfo& init_info,
blink::WebApplicationCacheHostClient* client);
- // Main resource loading is different for workers. The resource is
- // loaded by the creator of the worker rather than the worker itself.
+ // Main resource loading is different for workers. The main resource is
+ // loaded by the worker using WorkerScriptLoader.
// These overrides are stubbed out.
virtual void willStartMainResourceRequest(
blink::WebURLRequest&, const blink::WebFrame*);

Powered by Google App Engine
This is Rietveld 408576698