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

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

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ShellContentBrowserClient off-the-record-profile Created 8 years 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 "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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 GetResourceContext()->GetRequestContext()); 102 GetResourceContext()->GetRequestContext());
103 } 103 }
104 return request_context_.get(); 104 return request_context_.get();
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
113 net::URLRequestContextGetter*
114 TestBrowserContext::GetRequestContextForStoragePartition(
115 const FilePath& partition_path,
116 bool in_memory) {
117 return NULL;
118 }
119
120 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { 112 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() {
121 return NULL; 113 return NULL;
122 } 114 }
123 115
124 net::URLRequestContextGetter* 116 net::URLRequestContextGetter*
125 TestBrowserContext::GetMediaRequestContextForRenderProcess( 117 TestBrowserContext::GetMediaRequestContextForRenderProcess(
126 int renderer_child_id) { 118 int renderer_child_id) {
127 return NULL; 119 return NULL;
128 } 120 }
129 121
(...skipping 18 matching lines...) Expand all
148 SpeechRecognitionPreferences* 140 SpeechRecognitionPreferences*
149 TestBrowserContext::GetSpeechRecognitionPreferences() { 141 TestBrowserContext::GetSpeechRecognitionPreferences() {
150 return NULL; 142 return NULL;
151 } 143 }
152 144
153 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 145 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
154 return special_storage_policy_.get(); 146 return special_storage_policy_.get();
155 } 147 }
156 148
157 } // namespace content 149 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698