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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 10916132: AppCache and StoragePartition'ing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
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/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ShellBrowserContext::GetMediaRequestContext() { 117 ShellBrowserContext::GetMediaRequestContext() {
118 return GetRequestContext(); 118 return GetRequestContext();
119 } 119 }
120 120
121 net::URLRequestContextGetter* 121 net::URLRequestContextGetter*
122 ShellBrowserContext::GetMediaRequestContextForRenderProcess( 122 ShellBrowserContext::GetMediaRequestContextForRenderProcess(
123 int renderer_child_id) { 123 int renderer_child_id) {
124 return GetRequestContext(); 124 return GetRequestContext();
125 } 125 }
126 126
127 net::URLRequestContextGetter*
128 ShellBrowserContext::GetRequestContextForStoragePartition(
129 const std::string& partition_id) {
130 return NULL;
131 }
132
127 ResourceContext* ShellBrowserContext::GetResourceContext() { 133 ResourceContext* ShellBrowserContext::GetResourceContext() {
128 if (!resource_context_.get()) { 134 if (!resource_context_.get()) {
129 resource_context_.reset(new ShellResourceContext( 135 resource_context_.reset(new ShellResourceContext(
130 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); 136 static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
131 } 137 }
132 return resource_context_.get(); 138 return resource_context_.get();
133 } 139 }
134 140
135 GeolocationPermissionContext* 141 GeolocationPermissionContext*
136 ShellBrowserContext::GetGeolocationPermissionContext() { 142 ShellBrowserContext::GetGeolocationPermissionContext() {
137 return NULL; 143 return NULL;
138 } 144 }
139 145
140 SpeechRecognitionPreferences* 146 SpeechRecognitionPreferences*
141 ShellBrowserContext::GetSpeechRecognitionPreferences() { 147 ShellBrowserContext::GetSpeechRecognitionPreferences() {
142 return NULL; 148 return NULL;
143 } 149 }
144 150
145 bool ShellBrowserContext::DidLastSessionExitCleanly() { 151 bool ShellBrowserContext::DidLastSessionExitCleanly() {
146 return true; 152 return true;
147 } 153 }
148 154
149 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 155 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
150 return NULL; 156 return NULL;
151 } 157 }
152 158
153 } // namespace content 159 } // namespace content
OLDNEW
« content/public/test/test_browser_context.cc ('K') | « content/shell/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698