| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "net/base/mime_util.h" | 47 #include "net/base/mime_util.h" |
| 48 #include "net/base/registry_controlled_domain.h" | 48 #include "net/base/registry_controlled_domain.h" |
| 49 #include "ui/base/ui_base_switches.h" | 49 #include "ui/base/ui_base_switches.h" |
| 50 #include "webkit/fileapi/file_system_context.h" | 50 #include "webkit/fileapi/file_system_context.h" |
| 51 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 51 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
| 52 #include "webkit/glue/resource_type.h" | 52 #include "webkit/glue/resource_type.h" |
| 53 | 53 |
| 54 using content::BrowserThread; | 54 using content::BrowserThread; |
| 55 using content::ChildProcessData; | 55 using content::ChildProcessData; |
| 56 using content::ChildProcessHost; | 56 using content::ChildProcessHost; |
| 57 using content::RenderViewHostImpl; |
| 57 using content::ResourceContext; | 58 using content::ResourceContext; |
| 58 using content::UserMetricsAction; | 59 using content::UserMetricsAction; |
| 59 using content::WorkerDevToolsManager; | 60 using content::WorkerDevToolsManager; |
| 60 using content::WorkerServiceImpl; | 61 using content::WorkerServiceImpl; |
| 61 | 62 |
| 62 namespace { | 63 namespace { |
| 63 | 64 |
| 64 // Helper class that we pass to SocketStreamDispatcherHost so that it can find | 65 // Helper class that we pass to SocketStreamDispatcherHost so that it can find |
| 65 // the right net::URLRequestContext for a request. | 66 // the right net::URLRequestContext for a request. |
| 66 class URLRequestContextSelector | 67 class URLRequestContextSelector |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 } | 684 } |
| 684 } | 685 } |
| 685 return false; | 686 return false; |
| 686 } | 687 } |
| 687 | 688 |
| 688 WorkerProcessHost::WorkerInstance::FilterInfo | 689 WorkerProcessHost::WorkerInstance::FilterInfo |
| 689 WorkerProcessHost::WorkerInstance::GetFilter() const { | 690 WorkerProcessHost::WorkerInstance::GetFilter() const { |
| 690 DCHECK(NumFilters() == 1); | 691 DCHECK(NumFilters() == 1); |
| 691 return *filters_.begin(); | 692 return *filters_.begin(); |
| 692 } | 693 } |
| OLD | NEW |