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

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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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 | « 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { 119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() {
120 return NULL; 120 return NULL;
121 } 121 }
122 122
123 net::URLRequestContextGetter* 123 net::URLRequestContextGetter*
124 TestBrowserContext::GetMediaRequestContextForRenderProcess( 124 TestBrowserContext::GetMediaRequestContextForRenderProcess(
125 int renderer_child_id) { 125 int renderer_child_id) {
126 return NULL; 126 return NULL;
127 } 127 }
128 128
129 net::URLRequestContextGetter*
130 TestBrowserContext::GetMediaRequestContextForStoragePartition(
131 const std::string& partition_id) {
132 return NULL;
133 }
134
129 ResourceContext* TestBrowserContext::GetResourceContext() { 135 ResourceContext* TestBrowserContext::GetResourceContext() {
130 if (!resource_context_.get()) 136 if (!resource_context_.get())
131 resource_context_.reset(new MockResourceContext()); 137 resource_context_.reset(new MockResourceContext());
132 return resource_context_.get(); 138 return resource_context_.get();
133 } 139 }
134 140
135 GeolocationPermissionContext* 141 GeolocationPermissionContext*
136 TestBrowserContext::GetGeolocationPermissionContext() { 142 TestBrowserContext::GetGeolocationPermissionContext() {
137 return NULL; 143 return NULL;
138 } 144 }
139 145
140 SpeechRecognitionPreferences* 146 SpeechRecognitionPreferences*
141 TestBrowserContext::GetSpeechRecognitionPreferences() { 147 TestBrowserContext::GetSpeechRecognitionPreferences() {
142 return NULL; 148 return NULL;
143 } 149 }
144 150
145 bool TestBrowserContext::DidLastSessionExitCleanly() { 151 bool TestBrowserContext::DidLastSessionExitCleanly() {
146 return true; 152 return true;
147 } 153 }
148 154
149 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 155 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
150 return special_storage_policy_.get(); 156 return special_storage_policy_.get();
151 } 157 }
152 158
153 } // namespace content 159 } // 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