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/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "base/base_paths_win.h" | 23 #include "base/base_paths_win.h" |
24 #elif defined(OS_LINUX) | 24 #elif defined(OS_LINUX) |
25 #include "base/nix/xdg_util.h" | 25 #include "base/nix/xdg_util.h" |
26 #elif defined(OS_MACOSX) | 26 #elif defined(OS_MACOSX) |
27 #include "base/base_paths_mac.h" | 27 #include "base/base_paths_mac.h" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 | 31 |
| 32 // static |
| 33 BrowserPluginGuestManagerDelegate* |
| 34 ShellBrowserContext::guest_manager_delegate_ = NULL; |
| 35 |
32 class ShellBrowserContext::ShellResourceContext : public ResourceContext { | 36 class ShellBrowserContext::ShellResourceContext : public ResourceContext { |
33 public: | 37 public: |
34 ShellResourceContext() : getter_(NULL) {} | 38 ShellResourceContext() : getter_(NULL) {} |
35 virtual ~ShellResourceContext() {} | 39 virtual ~ShellResourceContext() {} |
36 | 40 |
37 // ResourceContext implementation: | 41 // ResourceContext implementation: |
38 virtual net::HostResolver* GetHostResolver() OVERRIDE { | 42 virtual net::HostResolver* GetHostResolver() OVERRIDE { |
39 CHECK(getter_); | 43 CHECK(getter_); |
40 return getter_->host_resolver(); | 44 return getter_->host_resolver(); |
41 } | 45 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 231 |
228 ResourceContext* ShellBrowserContext::GetResourceContext() { | 232 ResourceContext* ShellBrowserContext::GetResourceContext() { |
229 return resource_context_.get(); | 233 return resource_context_.get(); |
230 } | 234 } |
231 | 235 |
232 GeolocationPermissionContext* | 236 GeolocationPermissionContext* |
233 ShellBrowserContext::GetGeolocationPermissionContext() { | 237 ShellBrowserContext::GetGeolocationPermissionContext() { |
234 return NULL; | 238 return NULL; |
235 } | 239 } |
236 | 240 |
| 241 BrowserPluginGuestManagerDelegate* |
| 242 ShellBrowserContext::GetGuestManagerDelegate() { |
| 243 return guest_manager_delegate_; |
| 244 } |
| 245 |
237 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 246 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
238 return NULL; | 247 return NULL; |
239 } | 248 } |
240 | 249 |
241 } // namespace content | 250 } // namespace content |
OLD | NEW |