OLD | NEW |
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/environment.h" | 8 #include "base/environment.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 net::URLRequestContextGetter* | 153 net::URLRequestContextGetter* |
154 ShellBrowserContext::GetRequestContextForMedia() { | 154 ShellBrowserContext::GetRequestContextForMedia() { |
155 return GetRequestContext(); | 155 return GetRequestContext(); |
156 } | 156 } |
157 | 157 |
158 ResourceContext* ShellBrowserContext::GetResourceContext() { | 158 ResourceContext* ShellBrowserContext::GetResourceContext() { |
159 if (!resource_context_.get()) { | 159 if (!resource_context_.get()) { |
160 resource_context_.reset(new ShellResourceContext( | 160 resource_context_.reset(new ShellResourceContext( |
161 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()), | 161 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); |
162 BrowserContext::GetBlobStorageContext(this))); | |
163 } | 162 } |
164 return resource_context_.get(); | 163 return resource_context_.get(); |
165 } | 164 } |
166 | 165 |
167 HostZoomMap* ShellBrowserContext::GetHostZoomMap() { | 166 HostZoomMap* ShellBrowserContext::GetHostZoomMap() { |
168 if (!host_zoom_map_) | 167 if (!host_zoom_map_) |
169 host_zoom_map_ = HostZoomMap::Create(); | 168 host_zoom_map_ = HostZoomMap::Create(); |
170 return host_zoom_map_.get(); | 169 return host_zoom_map_.get(); |
171 } | 170 } |
172 | 171 |
(...skipping 14 matching lines...) Expand all Loading... |
187 | 186 |
188 bool ShellBrowserContext::DidLastSessionExitCleanly() { | 187 bool ShellBrowserContext::DidLastSessionExitCleanly() { |
189 return true; | 188 return true; |
190 } | 189 } |
191 | 190 |
192 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 191 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
193 return NULL; | 192 return NULL; |
194 } | 193 } |
195 | 194 |
196 } // namespace content | 195 } // namespace content |
OLD | NEW |