OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/shell/browser/shell_browser_context.h" | 5 #include "extensions/shell/browser/shell_browser_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 #include "extensions/browser/guest_view/guest_view_manager.h" | 10 #include "extensions/browser/guest_view/guest_view_manager.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ShellBrowserContext::ShellBrowserContext() | 28 ShellBrowserContext::ShellBrowserContext() |
29 : content::ShellBrowserContext(false /* off_the_record */, | 29 : content::ShellBrowserContext(false /* off_the_record */, |
30 nullptr /* net_log */), | 30 nullptr /* net_log */), |
31 storage_policy_(new ShellSpecialStoragePolicy) { | 31 storage_policy_(new ShellSpecialStoragePolicy) { |
32 } | 32 } |
33 | 33 |
34 ShellBrowserContext::~ShellBrowserContext() { | 34 ShellBrowserContext::~ShellBrowserContext() { |
35 } | 35 } |
36 | 36 |
37 content::BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() { | 37 content::BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() { |
38 return GuestViewManager::FromBrowserContextIfAvailable(this); | 38 return GuestViewManager::FromBrowserContext(this); |
39 } | 39 } |
40 | 40 |
41 storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 41 storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
42 return storage_policy_.get(); | 42 return storage_policy_.get(); |
43 } | 43 } |
44 | 44 |
45 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( | 45 net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext( |
46 content::ProtocolHandlerMap* protocol_handlers, | 46 content::ProtocolHandlerMap* protocol_handlers, |
47 content::URLRequestInterceptorScopedVector request_interceptors, | 47 content::URLRequestInterceptorScopedVector request_interceptors, |
48 InfoMap* extension_info_map) { | 48 InfoMap* extension_info_map) { |
(...skipping 24 matching lines...) Expand all Loading... |
73 | 73 |
74 void ShellBrowserContext::InitURLRequestContextOnIOThread() { | 74 void ShellBrowserContext::InitURLRequestContextOnIOThread() { |
75 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | 75 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
76 | 76 |
77 // GetURLRequestContext() will create a URLRequestContext if it isn't | 77 // GetURLRequestContext() will create a URLRequestContext if it isn't |
78 // initialized. | 78 // initialized. |
79 url_request_context_getter()->GetURLRequestContext(); | 79 url_request_context_getter()->GetURLRequestContext(); |
80 } | 80 } |
81 | 81 |
82 } // namespace extensions | 82 } // namespace extensions |
OLD | NEW |