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

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

Issue 6338002: net: Remove typedef net::URLRequestContext URLRequestContext; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for real Created 9 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/worker_host/worker_process_host.h" 5 #include "chrome/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
(...skipping 25 matching lines...) Expand all
37 #include "chrome/common/result_codes.h" 37 #include "chrome/common/result_codes.h"
38 #include "chrome/common/worker_messages.h" 38 #include "chrome/common/worker_messages.h"
39 #include "net/base/mime_util.h" 39 #include "net/base/mime_util.h"
40 #include "ipc/ipc_switches.h" 40 #include "ipc/ipc_switches.h"
41 #include "net/base/registry_controlled_domain.h" 41 #include "net/base/registry_controlled_domain.h"
42 #include "webkit/fileapi/file_system_path_manager.h" 42 #include "webkit/fileapi/file_system_path_manager.h"
43 43
44 namespace { 44 namespace {
45 45
46 // Helper class that we pass to SocketStreamDispatcherHost so that it can find 46 // Helper class that we pass to SocketStreamDispatcherHost so that it can find
47 // the right URLRequestContext for a request. 47 // the right net::URLRequestContext for a request.
48 class URLRequestContextOverride 48 class URLRequestContextOverride
49 : public ResourceMessageFilter::URLRequestContextOverride { 49 : public ResourceMessageFilter::URLRequestContextOverride {
50 public: 50 public:
51 explicit URLRequestContextOverride( 51 explicit URLRequestContextOverride(
52 URLRequestContext* url_request_context) 52 net::URLRequestContext* url_request_context)
53 : url_request_context_(url_request_context) { 53 : url_request_context_(url_request_context) {
54 } 54 }
55 virtual ~URLRequestContextOverride() {} 55 virtual ~URLRequestContextOverride() {}
56 56
57 virtual URLRequestContext* GetRequestContext( 57 virtual net::URLRequestContext* GetRequestContext(
58 uint32 request_id, ResourceType::Type resource_type) { 58 uint32 request_id, ResourceType::Type resource_type) {
59 return url_request_context_; 59 return url_request_context_;
60 } 60 }
61 61
62 private: 62 private:
63 URLRequestContext* url_request_context_; 63 net::URLRequestContext* url_request_context_;
64 }; 64 };
65 65
66 } // namespace 66 } // namespace
67 67
68 // Notifies RenderViewHost that one or more worker objects crashed. 68 // Notifies RenderViewHost that one or more worker objects crashed.
69 class WorkerCrashTask : public Task { 69 class WorkerCrashTask : public Task {
70 public: 70 public:
71 WorkerCrashTask(int render_process_unique_id, int render_view_id) 71 WorkerCrashTask(int render_process_unique_id, int render_view_id)
72 : render_process_unique_id_(render_process_unique_id), 72 : render_process_unique_id_(render_process_unique_id),
73 render_view_id_(render_view_id) { } 73 render_view_id_(render_view_id) { }
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } 607 }
608 } 608 }
609 return false; 609 return false;
610 } 610 }
611 611
612 WorkerProcessHost::WorkerInstance::FilterInfo 612 WorkerProcessHost::WorkerInstance::FilterInfo
613 WorkerProcessHost::WorkerInstance::GetFilter() const { 613 WorkerProcessHost::WorkerInstance::GetFilter() const {
614 DCHECK(NumFilters() == 1); 614 DCHECK(NumFilters() == 1);
615 return *filters_.begin(); 615 return *filters_.begin();
616 } 616 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698