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 |
| 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 Loading... |
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 |
OLD | NEW |