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

Side by Side Diff: trunk/src/content/browser/shared_worker/shared_worker_host.cc

Issue 195723003: Revert 256305 "Add SharedWorkerServiceImpl::CheckWorkerDependenc..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 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/browser/shared_worker/shared_worker_host.h" 5 #include "content/browser/shared_worker/shared_worker_host.h"
6 6
7 #include "content/browser/frame_host/render_frame_host_delegate.h" 7 #include "content/browser/frame_host/render_frame_host_delegate.h"
8 #include "content/browser/frame_host/render_frame_host_impl.h" 8 #include "content/browser/frame_host/render_frame_host_impl.h"
9 #include "content/browser/message_port_service.h" 9 #include "content/browser/message_port_service.h"
10 #include "content/browser/shared_worker/shared_worker_instance.h" 10 #include "content/browser/shared_worker/shared_worker_instance.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 void SharedWorkerHost::WorkerContextDestroyed() { 132 void SharedWorkerHost::WorkerContextDestroyed() {
133 if (!instance_) 133 if (!instance_)
134 return; 134 return;
135 instance_.reset(); 135 instance_.reset();
136 } 136 }
137 137
138 void SharedWorkerHost::WorkerScriptLoaded() { 138 void SharedWorkerHost::WorkerScriptLoaded() {
139 // TODO(horo): implement this. 139 // TODO(horo): implement this.
140 NOTIMPLEMENTED();
140 } 141 }
141 142
142 void SharedWorkerHost::WorkerScriptLoadFailed() { 143 void SharedWorkerHost::WorkerScriptLoadFailed() {
143 if (!instance_) 144 if (!instance_)
144 return; 145 return;
145 instance_->set_load_failed(true); 146 instance_->set_load_failed(true);
146 for (SharedWorkerInstance::FilterList::const_iterator i = 147 for (SharedWorkerInstance::FilterList::const_iterator i =
147 instance_->filters().begin(); 148 instance_->filters().begin();
148 i != instance_->filters().end(); ++i) { 149 i != instance_->filters().end(); ++i) {
149 i->filter()->Send(new ViewMsg_WorkerScriptLoadFailed(i->route_id())); 150 i->filter()->Send(new ViewMsg_WorkerScriptLoadFailed(i->route_id()));
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 documents.begin(); 249 documents.begin();
249 doc != documents.end(); 250 doc != documents.end();
250 ++doc) { 251 ++doc) {
251 result.push_back( 252 result.push_back(
252 std::make_pair(doc->render_process_id(), doc->render_frame_id())); 253 std::make_pair(doc->render_process_id(), doc->render_frame_id()));
253 } 254 }
254 return result; 255 return result;
255 } 256 }
256 257
257 } // namespace content 258 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698