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

Side by Side Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 615823002: Temporarily remove didReceiveDataForMainResource() implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed #4 Created 6 years, 2 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
« no previous file with comments | « content/child/appcache/web_application_cache_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" 5 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "content/child/appcache/appcache_dispatcher.h" 8 #include "content/child/appcache/appcache_dispatcher.h"
9 #include "content/child/appcache/web_application_cache_host_impl.h" 9 #include "content/child/appcache/web_application_cache_host_impl.h"
10 #include "content/child/scoped_child_process_reference.h" 10 #include "content/child/scoped_child_process_reference.h"
(...skipping 22 matching lines...) Expand all
33 ->backend_proxy()) {} 33 ->backend_proxy()) {}
34 34
35 // Main resource loading is different for workers. The main resource is 35 // Main resource loading is different for workers. The main resource is
36 // loaded by the worker using WorkerScriptLoader. 36 // loaded by the worker using WorkerScriptLoader.
37 // These overrides are stubbed out. 37 // These overrides are stubbed out.
38 virtual void willStartMainResourceRequest( 38 virtual void willStartMainResourceRequest(
39 blink::WebURLRequest&, 39 blink::WebURLRequest&,
40 const blink::WebApplicationCacheHost*) {} 40 const blink::WebApplicationCacheHost*) {}
41 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&) { 41 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&) {
42 } 42 }
43 virtual void didReceiveDataForMainResource(const char* data, int len) {} 43 // TODO(tyoshino): Revive didReceiveDataForMainResource once Blink side
44 // refactoring is done. See crbug.com/418885.
44 virtual void didFinishLoadingMainResource(bool success) {} 45 virtual void didFinishLoadingMainResource(bool success) {}
45 46
46 // Cache selection is also different for workers. We know at construction 47 // Cache selection is also different for workers. We know at construction
47 // time what cache to select and do so then. 48 // time what cache to select and do so then.
48 // These overrides are stubbed out. 49 // These overrides are stubbed out.
49 virtual void selectCacheWithoutManifest() {} 50 virtual void selectCacheWithoutManifest() {}
50 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL) { 51 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL) {
51 return true; 52 return true;
52 } 53 }
53 }; 54 };
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 pending_channels_.push_back(channel); 208 pending_channels_.push_back(channel);
208 } 209 }
209 } 210 }
210 211
211 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { 212 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() {
212 runing_ = false; 213 runing_ = false;
213 impl_->terminateWorkerContext(); 214 impl_->terminateWorkerContext();
214 } 215 }
215 216
216 } // namespace content 217 } // namespace content
OLDNEW
« no previous file with comments | « content/child/appcache/web_application_cache_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698