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" |
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/resource_context.h" | 15 #include "content/public/browser/resource_context.h" |
16 #include "content/public/browser/storage_partition.h" | 16 #include "content/public/browser/storage_partition.h" |
17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
18 #include "content/shell/browser/shell_download_manager_delegate.h" | 18 #include "content/shell/browser/shell_download_manager_delegate.h" |
19 #include "content/shell/browser/shell_url_request_context_getter.h" | 19 #include "content/shell/browser/shell_url_request_context_getter.h" |
20 #include "content/shell/common/shell_switches.h" | 20 #include "content/shell/common/shell_switches.h" |
| 21 #include "net/ssl/client_cert_store.h" |
21 | 22 |
22 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
23 #include "base/base_paths_win.h" | 24 #include "base/base_paths_win.h" |
24 #elif defined(OS_LINUX) | 25 #elif defined(OS_LINUX) |
25 #include "base/nix/xdg_util.h" | 26 #include "base/nix/xdg_util.h" |
26 #elif defined(OS_MACOSX) | 27 #elif defined(OS_MACOSX) |
27 #include "base/base_paths_mac.h" | 28 #include "base/base_paths_mac.h" |
28 #endif | 29 #endif |
29 | 30 |
30 namespace content { | 31 namespace content { |
(...skipping 11 matching lines...) Expand all Loading... |
42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { | 43 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { |
43 CHECK(getter_); | 44 CHECK(getter_); |
44 return getter_->GetURLRequestContext(); | 45 return getter_->GetURLRequestContext(); |
45 } | 46 } |
46 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { | 47 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { |
47 return false; | 48 return false; |
48 } | 49 } |
49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { | 50 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { |
50 return false; | 51 return false; |
51 } | 52 } |
| 53 virtual scoped_ptr<net::ClientCertStore> GetClientCertStore() OVERRIDE { |
| 54 return scoped_ptr<net::ClientCertStore>(); |
| 55 } |
52 | 56 |
53 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 57 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
54 getter_ = getter; | 58 getter_ = getter; |
55 } | 59 } |
56 | 60 |
57 private: | 61 private: |
58 ShellURLRequestContextGetter* getter_; | 62 ShellURLRequestContextGetter* getter_; |
59 | 63 |
60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 64 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
61 }; | 65 }; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 GeolocationPermissionContext* | 210 GeolocationPermissionContext* |
207 ShellBrowserContext::GetGeolocationPermissionContext() { | 211 ShellBrowserContext::GetGeolocationPermissionContext() { |
208 return NULL; | 212 return NULL; |
209 } | 213 } |
210 | 214 |
211 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 215 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
212 return NULL; | 216 return NULL; |
213 } | 217 } |
214 | 218 |
215 } // namespace content | 219 } // namespace content |
OLD | NEW |