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

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

Issue 566863004: Enabling webview in app_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 3 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
7 #include "extensions/browser/guest_view/guest_view_manager.h"
6 #include "extensions/shell/browser/shell_special_storage_policy.h" 8 #include "extensions/shell/browser/shell_special_storage_policy.h"
7 9
8 namespace extensions { 10 namespace extensions {
9 11
10 // Create a normal recording browser context. If we used an incognito context 12 // Create a normal recording browser context. If we used an incognito context
11 // then app_shell would also have to create a normal context and manage both. 13 // then app_shell would also have to create a normal context and manage both.
12 ShellBrowserContext::ShellBrowserContext() 14 ShellBrowserContext::ShellBrowserContext()
13 : content::ShellBrowserContext(false, NULL), 15 : content::ShellBrowserContext(false, NULL),
14 storage_policy_(new ShellSpecialStoragePolicy) { 16 storage_policy_(new ShellSpecialStoragePolicy) {
15 } 17 }
16 18
17 ShellBrowserContext::~ShellBrowserContext() { 19 ShellBrowserContext::~ShellBrowserContext() {
18 } 20 }
19 21
22 content::BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() {
23 return GuestViewManager::FromBrowserContext(this);
24 }
25
20 storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 26 storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
21 return storage_policy_.get(); 27 return storage_policy_.get();
22 } 28 }
23 29
24 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext1() { 30 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext1() {
25 NOTREACHED(); 31 NOTREACHED();
26 } 32 }
27 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext2() { 33 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext2() {
28 NOTREACHED(); 34 NOTREACHED();
29 } 35 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 NOTREACHED(); 67 NOTREACHED();
62 } 68 }
63 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext14() { 69 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext14() {
64 NOTREACHED(); 70 NOTREACHED();
65 } 71 }
66 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext15() { 72 void ShellBrowserContext::ProfileFunctionCallOnNonProfileBrowserContext15() {
67 NOTREACHED(); 73 NOTREACHED();
68 } 74 }
69 75
70 } // namespace extensions 76 } // namespace extensions
OLDNEW
« extensions/extensions.gyp ('K') | « extensions/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698