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

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

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable test for chrome_frame_net_tests Created 8 years, 1 month 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_
7 7
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "net/http/http_cache.h" 9 #include "net/http/http_cache.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 16 matching lines...) Expand all
27 TestShellRequestContext(); 27 TestShellRequestContext();
28 28
29 // Use an on-disk cache at the specified location. Optionally, use the cache 29 // Use an on-disk cache at the specified location. Optionally, use the cache
30 // in playback or record mode. 30 // in playback or record mode.
31 TestShellRequestContext(const FilePath& cache_path, 31 TestShellRequestContext(const FilePath& cache_path,
32 net::HttpCache::Mode cache_mode, 32 net::HttpCache::Mode cache_mode,
33 bool no_proxy); 33 bool no_proxy);
34 34
35 virtual ~TestShellRequestContext(); 35 virtual ~TestShellRequestContext();
36 36
37 virtual const std::string& GetUserAgent(const GURL& url) const OVERRIDE;
38
39 webkit_blob::BlobStorageController* blob_storage_controller() const { 37 webkit_blob::BlobStorageController* blob_storage_controller() const {
40 return blob_storage_controller_.get(); 38 return blob_storage_controller_.get();
41 } 39 }
42 40
43 fileapi::FileSystemContext* file_system_context() const { 41 fileapi::FileSystemContext* file_system_context() const {
44 return file_system_context_.get(); 42 return file_system_context_.get();
45 } 43 }
46 44
47 private: 45 private:
48 void Init(const FilePath& cache_path, net::HttpCache::Mode cache_mode, 46 void Init(const FilePath& cache_path, net::HttpCache::Mode cache_mode,
49 bool no_proxy); 47 bool no_proxy);
50 48
51 net::URLRequestContextStorage storage_; 49 net::URLRequestContextStorage storage_;
52 scoped_ptr<webkit_blob::BlobStorageController> blob_storage_controller_; 50 scoped_ptr<webkit_blob::BlobStorageController> blob_storage_controller_;
53 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 51 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
54 }; 52 };
55 53
56 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_ 54 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | webkit/tools/test_shell/test_shell_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698