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

Side by Side Diff: content/shell/shell_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/shell/shell_browser_context.h ('k') | no next file » | 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/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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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* 127 net::URLRequestContextGetter*
128 ShellBrowserContext::GetMediaRequestContextForStoragePartition(
129 const std::string& partition_id) {
130 return GetRequestContext();
131 }
132
133 net::URLRequestContextGetter*
128 ShellBrowserContext::GetRequestContextForStoragePartition( 134 ShellBrowserContext::GetRequestContextForStoragePartition(
129 const std::string& partition_id) { 135 const std::string& partition_id) {
130 return NULL; 136 return NULL;
131 } 137 }
132 138
133 ResourceContext* ShellBrowserContext::GetResourceContext() { 139 ResourceContext* ShellBrowserContext::GetResourceContext() {
134 if (!resource_context_.get()) { 140 if (!resource_context_.get()) {
135 resource_context_.reset(new ShellResourceContext( 141 resource_context_.reset(new ShellResourceContext(
136 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); 142 static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
137 } 143 }
(...skipping 12 matching lines...) Expand all
150 156
151 bool ShellBrowserContext::DidLastSessionExitCleanly() { 157 bool ShellBrowserContext::DidLastSessionExitCleanly() {
152 return true; 158 return true;
153 } 159 }
154 160
155 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 161 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
156 return NULL; 162 return NULL;
157 } 163 }
158 164
159 } // namespace content 165 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698