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

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

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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
« no previous file with comments | « content/shell/browser/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 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
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 resource_context_(new ShellResourceContext) { 69 resource_context_(new ShellResourceContext) {
69 InitWhileIOAllowed(); 70 InitWhileIOAllowed();
70 } 71 }
71 72
72 ShellBrowserContext::~ShellBrowserContext() { 73 ShellBrowserContext::~ShellBrowserContext() {
73 if (resource_context_) { 74 if (resource_context_) {
74 BrowserThread::DeleteSoon( 75 BrowserThread::DeleteSoon(
75 BrowserThread::IO, FROM_HERE, resource_context_.release()); 76 BrowserThread::IO, FROM_HERE, resource_context_.release());
76 } 77 }
77 } 78 }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 ResourceContext* ShellBrowserContext::GetResourceContext() { 229 ResourceContext* ShellBrowserContext::GetResourceContext() {
229 return resource_context_.get(); 230 return resource_context_.get();
230 } 231 }
231 232
232 GeolocationPermissionContext* 233 GeolocationPermissionContext*
233 ShellBrowserContext::GetGeolocationPermissionContext() { 234 ShellBrowserContext::GetGeolocationPermissionContext() {
234 return NULL; 235 return NULL;
235 } 236 }
236 237
238 BrowserPluginGuestManagerDelegate*
239 ShellBrowserContext::GetGuestManagerDelegate() {
240 return guest_manager_delegate_;
241 }
242
237 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 243 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
238 return NULL; 244 return NULL;
239 } 245 }
240 246
241 } // namespace content 247 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698