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

Side by Side Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 5607004: net: Remove typedef net::URLRequestJob URLRequestJob; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 2 Created 10 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
« no previous file with comments | « webkit/blob/blob_url_request_job_unittest.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file contains an implementation of the ResourceLoaderBridge class. 5 // This file contains an implementation of the ResourceLoaderBridge class.
6 // The class is implemented using net::URLRequest, meaning it is a "simple" 6 // The class is implemented using net::URLRequest, meaning it is a "simple"
7 // version that directly issues requests. The more complicated one used in the 7 // version that directly issues requests. The more complicated one used in the
8 // browser uses IPC. 8 // browser uses IPC.
9 // 9 //
10 // Because net::URLRequest only provides an asynchronous resource loading API, 10 // Because net::URLRequest only provides an asynchronous resource loading API,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 cache_mode(in_cache_mode), 90 cache_mode(in_cache_mode),
91 no_proxy(in_no_proxy), 91 no_proxy(in_no_proxy),
92 accept_all_cookies(false) {} 92 accept_all_cookies(false) {}
93 93
94 FilePath cache_path; 94 FilePath cache_path;
95 net::HttpCache::Mode cache_mode; 95 net::HttpCache::Mode cache_mode;
96 bool no_proxy; 96 bool no_proxy;
97 bool accept_all_cookies; 97 bool accept_all_cookies;
98 }; 98 };
99 99
100 static URLRequestJob* BlobURLRequestJobFactory(net::URLRequest* request, 100 static net::URLRequestJob* BlobURLRequestJobFactory(net::URLRequest* request,
101 const std::string& scheme) { 101 const std::string& scheme) {
102 webkit_blob::BlobStorageController* blob_storage_controller = 102 webkit_blob::BlobStorageController* blob_storage_controller =
103 static_cast<TestShellRequestContext*>(request->context())-> 103 static_cast<TestShellRequestContext*>(request->context())->
104 blob_storage_controller(); 104 blob_storage_controller();
105 return new webkit_blob::BlobURLRequestJob( 105 return new webkit_blob::BlobURLRequestJob(
106 request, 106 request,
107 blob_storage_controller->GetBlobDataFromUrl(request->url()), 107 blob_storage_controller->GetBlobDataFromUrl(request->url()),
108 NULL); 108 NULL);
109 } 109 }
110 110
111 TestShellRequestContextParams* g_request_context_params = NULL; 111 TestShellRequestContextParams* g_request_context_params = NULL;
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 928
929 // static 929 // static
930 scoped_refptr<base::MessageLoopProxy> 930 scoped_refptr<base::MessageLoopProxy>
931 SimpleResourceLoaderBridge::GetIoThread() { 931 SimpleResourceLoaderBridge::GetIoThread() {
932 if (!EnsureIOThread()) { 932 if (!EnsureIOThread()) {
933 LOG(DFATAL) << "Failed to create IO thread."; 933 LOG(DFATAL) << "Failed to create IO thread.";
934 return NULL; 934 return NULL;
935 } 935 }
936 return g_io_thread->message_loop_proxy(); 936 return g_io_thread->message_loop_proxy();
937 } 937 }
OLDNEW
« no previous file with comments | « webkit/blob/blob_url_request_job_unittest.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698