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

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

Issue 1066563006: GuestView: Move GuestViewManager extension dependencies to ExtensionsGuestViewManagerDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extensions_guest_view_message_filter
Patch Set: Fixed tests Created 5 years, 8 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
OLDNEW
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
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
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
OLDNEW
« extensions/browser/guest_view/web_view/web_view_guest.cc ('K') | « extensions/extensions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698