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

Side by Side Diff: content/public/test/test_browser_context.cc

Issue 11147026: Initial refactor to get profiles to propagate storage partition details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a merging of removed variable. 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
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/shell/shell_browser_context.h » ('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) 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 "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "content/public/test/mock_resource_context.h" 8 #include "content/public/test/mock_resource_context.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 #include "net/url_request/url_request_context_getter.h" 10 #include "net/url_request/url_request_context_getter.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 net::URLRequestContextGetter* 107 net::URLRequestContextGetter*
108 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { 108 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) {
109 return NULL; 109 return NULL;
110 } 110 }
111 111
112 112
113 net::URLRequestContextGetter* 113 net::URLRequestContextGetter*
114 TestBrowserContext::GetRequestContextForStoragePartition( 114 TestBrowserContext::GetRequestContextForStoragePartition(
115 const std::string& partition_id) { 115 const FilePath& partition_path,
116 bool in_memory) {
116 return NULL; 117 return NULL;
117 } 118 }
118 119
119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { 120 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() {
120 return NULL; 121 return NULL;
121 } 122 }
122 123
123 net::URLRequestContextGetter* 124 net::URLRequestContextGetter*
124 TestBrowserContext::GetMediaRequestContextForRenderProcess( 125 TestBrowserContext::GetMediaRequestContextForRenderProcess(
125 int renderer_child_id) { 126 int renderer_child_id) {
126 return NULL; 127 return NULL;
127 } 128 }
128 129
129 net::URLRequestContextGetter* 130 net::URLRequestContextGetter*
130 TestBrowserContext::GetMediaRequestContextForStoragePartition( 131 TestBrowserContext::GetMediaRequestContextForStoragePartition(
131 const std::string& partition_id) { 132 const FilePath& partition_path,
133 bool in_memory) {
132 return NULL; 134 return NULL;
133 } 135 }
134 136
135 ResourceContext* TestBrowserContext::GetResourceContext() { 137 ResourceContext* TestBrowserContext::GetResourceContext() {
136 if (!resource_context_.get()) 138 if (!resource_context_.get())
137 resource_context_.reset(new MockResourceContext()); 139 resource_context_.reset(new MockResourceContext());
138 return resource_context_.get(); 140 return resource_context_.get();
139 } 141 }
140 142
141 GeolocationPermissionContext* 143 GeolocationPermissionContext*
142 TestBrowserContext::GetGeolocationPermissionContext() { 144 TestBrowserContext::GetGeolocationPermissionContext() {
143 return NULL; 145 return NULL;
144 } 146 }
145 147
146 SpeechRecognitionPreferences* 148 SpeechRecognitionPreferences*
147 TestBrowserContext::GetSpeechRecognitionPreferences() { 149 TestBrowserContext::GetSpeechRecognitionPreferences() {
148 return NULL; 150 return NULL;
149 } 151 }
150 152
151 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 153 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
152 return special_storage_policy_.get(); 154 return special_storage_policy_.get();
153 } 155 }
154 156
155 } // namespace content 157 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698