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

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: clang format to fix long lines 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(
270 process_->GetData().id, partition_.indexed_db_context())); 270 new IndexedDBDispatcherHost(partition_.indexed_db_context()));
271 } 271 }
272 272
273 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) { 273 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) {
274 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( 274 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL(
275 process_->GetData().id, instance.url()); 275 process_->GetData().id, instance.url());
276 276
277 instances_.push_back(instance); 277 instances_.push_back(instance);
278 278
279 WorkerProcessMsg_CreateWorker_Params params; 279 WorkerProcessMsg_CreateWorker_Params params;
280 params.url = instance.url(); 280 params.url = instance.url();
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return false; 700 return false;
701 } 701 }
702 702
703 WorkerProcessHost::WorkerInstance::FilterInfo 703 WorkerProcessHost::WorkerInstance::FilterInfo
704 WorkerProcessHost::WorkerInstance::GetFilter() const { 704 WorkerProcessHost::WorkerInstance::GetFilter() const {
705 DCHECK(NumFilters() == 1); 705 DCHECK(NumFilters() == 1);
706 return *filters_.begin(); 706 return *filters_.begin();
707 } 707 }
708 708
709 } // namespace content 709 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/browser/indexed_db_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698