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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { | 42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { |
43 CHECK(getter_); | 43 CHECK(getter_); |
44 return getter_->GetURLRequestContext(); | 44 return getter_->GetURLRequestContext(); |
45 } | 45 } |
46 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { | 46 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { |
47 return false; | 47 return false; |
48 } | 48 } |
49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { | 49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { |
50 return false; | 50 return false; |
51 } | 51 } |
| 52 virtual std::string GetMediaDeviceIDSalt() OVERRIDE { |
| 53 return "shell_salt"; |
| 54 } |
52 | 55 |
53 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 56 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
54 getter_ = getter; | 57 getter_ = getter; |
55 } | 58 } |
56 | 59 |
57 private: | 60 private: |
58 ShellURLRequestContextGetter* getter_; | 61 ShellURLRequestContextGetter* getter_; |
59 | 62 |
60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 63 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
61 }; | 64 }; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 GeolocationPermissionContext* | 217 GeolocationPermissionContext* |
215 ShellBrowserContext::GetGeolocationPermissionContext() { | 218 ShellBrowserContext::GetGeolocationPermissionContext() { |
216 return NULL; | 219 return NULL; |
217 } | 220 } |
218 | 221 |
219 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 222 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
220 return NULL; | 223 return NULL; |
221 } | 224 } |
222 | 225 |
223 } // namespace content | 226 } // namespace content |
OLD | NEW |