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

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

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 8 years, 7 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
« no previous file with comments | « webkit/tools/test_shell/simple_file_writer.cc ('k') | no next file » | 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) 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 "webkit/tools/test_shell/test_shell_request_context.h" 5 #include "webkit/tools/test_shell/test_shell_request_context.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 WebKit::webKitPlatformSupport()->fileSystem())->file_system_context(); 120 WebKit::webKitPlatformSupport()->fileSystem())->file_system_context();
121 121
122 net::URLRequestJobFactory* job_factory = new net::URLRequestJobFactory; 122 net::URLRequestJobFactory* job_factory = new net::URLRequestJobFactory;
123 job_factory->SetProtocolHandler( 123 job_factory->SetProtocolHandler(
124 "blob", 124 "blob",
125 new webkit_blob::BlobProtocolHandler( 125 new webkit_blob::BlobProtocolHandler(
126 blob_storage_controller_.get(), 126 blob_storage_controller_.get(),
127 SimpleResourceLoaderBridge::GetIoThread())); 127 SimpleResourceLoaderBridge::GetIoThread()));
128 job_factory->SetProtocolHandler( 128 job_factory->SetProtocolHandler(
129 "filesystem", 129 "filesystem",
130 fileapi::CreateFileSystemProtocolHandler( 130 fileapi::CreateFileSystemProtocolHandler(file_system_context_.get()));
131 file_system_context_.get(),
132 SimpleResourceLoaderBridge::GetIoThread()));
133 storage_.set_job_factory(job_factory); 131 storage_.set_job_factory(job_factory);
134 } 132 }
135 133
136 TestShellRequestContext::~TestShellRequestContext() { 134 TestShellRequestContext::~TestShellRequestContext() {
137 } 135 }
138 136
139 const std::string& TestShellRequestContext::GetUserAgent( 137 const std::string& TestShellRequestContext::GetUserAgent(
140 const GURL& url) const { 138 const GURL& url) const {
141 return webkit_glue::GetUserAgent(url); 139 return webkit_glue::GetUserAgent(url);
142 } 140 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_file_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698