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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 "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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual std::string GetUserAgent(const GURL& url) const OVERRIDE { 51 virtual std::string GetUserAgent(const GURL& url) const OVERRIDE {
52 return webkit_glue::GetUserAgent(url); 52 return webkit_glue::GetUserAgent(url);
53 } 53 }
54 54
55 private: 55 private:
56 DISALLOW_COPY_AND_ASSIGN(TestShellHttpUserAgentSettings); 56 DISALLOW_COPY_AND_ASSIGN(TestShellHttpUserAgentSettings);
57 }; 57 };
58 58
59 TestShellRequestContext::TestShellRequestContext() 59 TestShellRequestContext::TestShellRequestContext()
60 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) { 60 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) {
61 Init(FilePath(), net::HttpCache::NORMAL, false); 61 Init(base::FilePath(), net::HttpCache::NORMAL, false);
62 } 62 }
63 63
64 TestShellRequestContext::TestShellRequestContext( 64 TestShellRequestContext::TestShellRequestContext(
65 const FilePath& cache_path, 65 const base::FilePath& cache_path,
66 net::HttpCache::Mode cache_mode, 66 net::HttpCache::Mode cache_mode,
67 bool no_proxy) 67 bool no_proxy)
68 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) { 68 : ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) {
69 Init(cache_path, cache_mode, no_proxy); 69 Init(cache_path, cache_mode, no_proxy);
70 } 70 }
71 71
72 void TestShellRequestContext::Init( 72 void TestShellRequestContext::Init(
73 const FilePath& cache_path, 73 const base::FilePath& cache_path,
74 net::HttpCache::Mode cache_mode, 74 net::HttpCache::Mode cache_mode,
75 bool no_proxy) { 75 bool no_proxy) {
76 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL)); 76 storage_.set_cookie_store(new net::CookieMonster(NULL, NULL));
77 storage_.set_server_bound_cert_service(new net::ServerBoundCertService( 77 storage_.set_server_bound_cert_service(new net::ServerBoundCertService(
78 new net::DefaultServerBoundCertStore(NULL), 78 new net::DefaultServerBoundCertStore(NULL),
79 base::WorkerPool::GetTaskRunner(true))); 79 base::WorkerPool::GetTaskRunner(true)));
80 80
81 storage_.set_http_user_agent_settings(new TestShellHttpUserAgentSettings); 81 storage_.set_http_user_agent_settings(new TestShellHttpUserAgentSettings);
82 82
83 #if defined(OS_POSIX) && !defined(OS_MACOSX) 83 #if defined(OS_POSIX) && !defined(OS_MACOSX)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 file_system_context_, 146 file_system_context_,
147 SimpleResourceLoaderBridge::GetIoThread())); 147 SimpleResourceLoaderBridge::GetIoThread()));
148 job_factory->SetProtocolHandler( 148 job_factory->SetProtocolHandler(
149 "filesystem", 149 "filesystem",
150 fileapi::CreateFileSystemProtocolHandler(file_system_context_.get())); 150 fileapi::CreateFileSystemProtocolHandler(file_system_context_.get()));
151 storage_.set_job_factory(job_factory); 151 storage_.set_job_factory(job_factory);
152 } 152 }
153 153
154 TestShellRequestContext::~TestShellRequestContext() { 154 TestShellRequestContext::~TestShellRequestContext() {
155 } 155 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_request_context.h ('k') | webkit/tools/test_shell/test_shell_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698