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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small cleanup Created 7 years 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( 269 process_->AddFilter(new IndexedDBDispatcherHost(
270 new IndexedDBDispatcherHost(partition_.indexed_db_context())); 270 process_->GetData().id, url_request_context,
271 partition_.indexed_db_context(),
272 blob_storage_context));
271 } 273 }
272 274
273 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) { 275 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) {
274 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( 276 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL(
275 process_->GetData().id, instance.url()); 277 process_->GetData().id, instance.url());
276 278
277 instances_.push_back(instance); 279 instances_.push_back(instance);
278 280
279 WorkerProcessMsg_CreateWorker_Params params; 281 WorkerProcessMsg_CreateWorker_Params params;
280 params.url = instance.url(); 282 params.url = instance.url();
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return false; 702 return false;
701 } 703 }
702 704
703 WorkerProcessHost::WorkerInstance::FilterInfo 705 WorkerProcessHost::WorkerInstance::FilterInfo
704 WorkerProcessHost::WorkerInstance::GetFilter() const { 706 WorkerProcessHost::WorkerInstance::GetFilter() const {
705 DCHECK(NumFilters() == 1); 707 DCHECK(NumFilters() == 1);
706 return *filters_.begin(); 708 return *filters_.begin();
707 } 709 }
708 710
709 } // namespace content 711 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698