OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/shell_browser_context.h" | 5 #include "content/shell/browser/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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ShellURLRequestContextGetter* getter_; | 58 ShellURLRequestContextGetter* getter_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
61 }; | 61 }; |
62 | 62 |
63 ShellBrowserContext::ShellBrowserContext(bool off_the_record, | 63 ShellBrowserContext::ShellBrowserContext(bool off_the_record, |
64 net::NetLog* net_log) | 64 net::NetLog* net_log) |
65 : off_the_record_(off_the_record), | 65 : off_the_record_(off_the_record), |
66 net_log_(net_log), | 66 net_log_(net_log), |
67 ignore_certificate_errors_(false), | 67 ignore_certificate_errors_(false), |
68 guest_manager_delegate_(NULL), | 68 guest_manager_(NULL), |
69 resource_context_(new ShellResourceContext) { | 69 resource_context_(new ShellResourceContext) { |
70 InitWhileIOAllowed(); | 70 InitWhileIOAllowed(); |
71 } | 71 } |
72 | 72 |
73 ShellBrowserContext::~ShellBrowserContext() { | 73 ShellBrowserContext::~ShellBrowserContext() { |
74 if (resource_context_) { | 74 if (resource_context_) { |
75 BrowserThread::DeleteSoon( | 75 BrowserThread::DeleteSoon( |
76 BrowserThread::IO, FROM_HERE, resource_context_.release()); | 76 BrowserThread::IO, FROM_HERE, resource_context_.release()); |
77 } | 77 } |
78 } | 78 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 ResourceContext* ShellBrowserContext::GetResourceContext() { | 229 ResourceContext* ShellBrowserContext::GetResourceContext() { |
230 return resource_context_.get(); | 230 return resource_context_.get(); |
231 } | 231 } |
232 | 232 |
233 GeolocationPermissionContext* | 233 GeolocationPermissionContext* |
234 ShellBrowserContext::GetGeolocationPermissionContext() { | 234 ShellBrowserContext::GetGeolocationPermissionContext() { |
235 return NULL; | 235 return NULL; |
236 } | 236 } |
237 | 237 |
238 BrowserPluginGuestManagerDelegate* | 238 BrowserPluginGuestManager* |
239 ShellBrowserContext::GetGuestManagerDelegate() { | 239 ShellBrowserContext::GetGuestManager() { |
240 return guest_manager_delegate_; | 240 return guest_manager_; |
241 } | 241 } |
242 | 242 |
243 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 243 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
244 return NULL; | 244 return NULL; |
245 } | 245 } |
246 | 246 |
247 } // namespace content | 247 } // namespace content |
OLD | NEW |