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

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

Issue 9558006: Rename content/{common,browser}/file_system to fileapi and move blob stuff into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 (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
11 #include "base/base_switches.h" 11 #include "base/base_switches.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "content/browser/appcache/appcache_dispatcher_host.h" 19 #include "content/browser/appcache/appcache_dispatcher_host.h"
20 #include "content/browser/appcache/chrome_appcache_service.h" 20 #include "content/browser/appcache/chrome_appcache_service.h"
21 #include "content/browser/browser_child_process_host_impl.h" 21 #include "content/browser/browser_child_process_host_impl.h"
22 #include "content/browser/child_process_security_policy_impl.h" 22 #include "content/browser/child_process_security_policy_impl.h"
23 #include "content/browser/debugger/worker_devtools_manager.h" 23 #include "content/browser/debugger/worker_devtools_manager.h"
24 #include "content/browser/debugger/worker_devtools_message_filter.h" 24 #include "content/browser/debugger/worker_devtools_message_filter.h"
25 #include "content/browser/file_system/file_and_blob_message_filter.h" 25 #include "content/browser/fileapi/fileapi_message_filter.h"
26 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 26 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
27 #include "content/browser/mime_registry_message_filter.h" 27 #include "content/browser/mime_registry_message_filter.h"
28 #include "content/browser/renderer_host/database_message_filter.h" 28 #include "content/browser/renderer_host/database_message_filter.h"
29 #include "content/browser/renderer_host/file_utilities_message_filter.h" 29 #include "content/browser/renderer_host/file_utilities_message_filter.h"
30 #include "content/browser/renderer_host/render_view_host.h" 30 #include "content/browser/renderer_host/render_view_host.h"
31 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 31 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
32 #include "content/browser/resource_context_impl.h" 32 #include "content/browser/resource_context_impl.h"
33 #include "content/browser/worker_host/message_port_service.h" 33 #include "content/browser/worker_host/message_port_service.h"
34 #include "content/browser/worker_host/worker_message_filter.h" 34 #include "content/browser/worker_host/worker_message_filter.h"
35 #include "content/browser/worker_host/worker_service_impl.h" 35 #include "content/browser/worker_host/worker_service_impl.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 worker_message_filter_ = new WorkerMessageFilter( 256 worker_message_filter_ = new WorkerMessageFilter(
257 render_process_id, resource_context_, 257 render_process_id, resource_context_,
258 base::Bind(&WorkerServiceImpl::next_worker_route_id, 258 base::Bind(&WorkerServiceImpl::next_worker_route_id,
259 base::Unretained(WorkerServiceImpl::GetInstance()))); 259 base::Unretained(WorkerServiceImpl::GetInstance())));
260 process_->GetHost()->AddFilter(worker_message_filter_); 260 process_->GetHost()->AddFilter(worker_message_filter_);
261 process_->GetHost()->AddFilter(new AppCacheDispatcherHost( 261 process_->GetHost()->AddFilter(new AppCacheDispatcherHost(
262 static_cast<ChromeAppCacheService*>( 262 static_cast<ChromeAppCacheService*>(
263 ResourceContext::GetAppCacheService(resource_context_)), 263 ResourceContext::GetAppCacheService(resource_context_)),
264 process_->GetData().id)); 264 process_->GetData().id));
265 process_->GetHost()->AddFilter(new FileAndBlobMessageFilter( 265 process_->GetHost()->AddFilter(new FileAPIMessageFilter(
266 process_->GetData().id, 266 process_->GetData().id,
267 request_context, 267 request_context,
268 ResourceContext::GetFileSystemContext(resource_context_), 268 ResourceContext::GetFileSystemContext(resource_context_),
269 content::GetChromeBlobStorageContextForResourceContext( 269 content::GetChromeBlobStorageContextForResourceContext(
270 resource_context_))); 270 resource_context_)));
271 process_->GetHost()->AddFilter(new FileUtilitiesMessageFilter( 271 process_->GetHost()->AddFilter(new FileUtilitiesMessageFilter(
272 process_->GetData().id)); 272 process_->GetData().id));
273 process_->GetHost()->AddFilter(new MimeRegistryMessageFilter()); 273 process_->GetHost()->AddFilter(new MimeRegistryMessageFilter());
274 process_->GetHost()->AddFilter(new DatabaseMessageFilter( 274 process_->GetHost()->AddFilter(new DatabaseMessageFilter(
275 content::GetDatabaseTrackerForResourceContext(resource_context_))); 275 content::GetDatabaseTrackerForResourceContext(resource_context_)));
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 } 674 }
675 } 675 }
676 return false; 676 return false;
677 } 677 }
678 678
679 WorkerProcessHost::WorkerInstance::FilterInfo 679 WorkerProcessHost::WorkerInstance::FilterInfo
680 WorkerProcessHost::WorkerInstance::GetFilter() const { 680 WorkerProcessHost::WorkerInstance::GetFilter() const {
681 DCHECK(NumFilters() == 1); 681 DCHECK(NumFilters() == 1);
682 return *filters_.begin(); 682 return *filters_.begin();
683 } 683 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698