OLD | NEW |
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/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "content/shell/browser/shell_download_manager_delegate.h" | 17 #include "content/shell/browser/shell_download_manager_delegate.h" |
| 18 #include "content/shell/browser/shell_permission_manager.h" |
18 #include "content/shell/common/shell_switches.h" | 19 #include "content/shell/common/shell_switches.h" |
19 | 20 |
20 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
21 #include "base/base_paths_win.h" | 22 #include "base/base_paths_win.h" |
22 #elif defined(OS_LINUX) | 23 #elif defined(OS_LINUX) |
23 #include "base/nix/xdg_util.h" | 24 #include "base/nix/xdg_util.h" |
24 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
25 #include "base/base_paths_mac.h" | 26 #include "base/base_paths_mac.h" |
26 #endif | 27 #endif |
27 | 28 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 193 } |
193 | 194 |
194 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { | 195 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { |
195 return NULL; | 196 return NULL; |
196 } | 197 } |
197 | 198 |
198 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { | 199 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { |
199 return NULL; | 200 return NULL; |
200 } | 201 } |
201 | 202 |
| 203 PermissionManager* ShellBrowserContext::GetPermissionManager() { |
| 204 if (!permission_manager_.get()) |
| 205 permission_manager_.reset(new ShellPermissionManager()); |
| 206 return permission_manager_.get(); |
| 207 } |
| 208 |
202 } // namespace content | 209 } // namespace content |
OLD | NEW |