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

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 73153003: Remove dead code from IDB (chromium side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 #include "content/browser/worker_host/worker_process_host.h" 5 #include "content/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 base::Unretained(this))); 259 base::Unretained(this)));
260 260
261 SocketStreamDispatcherHost* socket_stream_dispatcher_host = 261 SocketStreamDispatcherHost* socket_stream_dispatcher_host =
262 new SocketStreamDispatcherHost( 262 new SocketStreamDispatcherHost(
263 render_process_id, 263 render_process_id,
264 request_context_callback, 264 request_context_callback,
265 resource_context_); 265 resource_context_);
266 socket_stream_dispatcher_host_ = socket_stream_dispatcher_host; 266 socket_stream_dispatcher_host_ = socket_stream_dispatcher_host;
267 process_->AddFilter(socket_stream_dispatcher_host); 267 process_->AddFilter(socket_stream_dispatcher_host);
268 process_->AddFilter(new WorkerDevToolsMessageFilter(process_->GetData().id)); 268 process_->AddFilter(new WorkerDevToolsMessageFilter(process_->GetData().id));
269 process_->AddFilter(new IndexedDBDispatcherHost( 269 process_->AddFilter(new IndexedDBDispatcherHost(partition_.indexed_db_context( )));
270 process_->GetData().id, partition_.indexed_db_context()));
271 } 270 }
272 271
273 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) { 272 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) {
274 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( 273 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL(
275 process_->GetData().id, instance.url()); 274 process_->GetData().id, instance.url());
276 275
277 instances_.push_back(instance); 276 instances_.push_back(instance);
278 277
279 WorkerProcessMsg_CreateWorker_Params params; 278 WorkerProcessMsg_CreateWorker_Params params;
280 params.url = instance.url(); 279 params.url = instance.url();
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return false; 699 return false;
701 } 700 }
702 701
703 WorkerProcessHost::WorkerInstance::FilterInfo 702 WorkerProcessHost::WorkerInstance::FilterInfo
704 WorkerProcessHost::WorkerInstance::GetFilter() const { 703 WorkerProcessHost::WorkerInstance::GetFilter() const {
705 DCHECK(NumFilters() == 1); 704 DCHECK(NumFilters() == 1);
706 return *filters_.begin(); 705 return *filters_.begin();
707 } 706 }
708 707
709 } // namespace content 708 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698