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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // ResourceContext implementation: | 37 // ResourceContext implementation: |
38 virtual net::HostResolver* GetHostResolver() OVERRIDE { | 38 virtual net::HostResolver* GetHostResolver() OVERRIDE { |
39 CHECK(getter_); | 39 CHECK(getter_); |
40 return getter_->host_resolver(); | 40 return getter_->host_resolver(); |
41 } | 41 } |
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 { | |
47 return false; | |
48 } | |
49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { | |
50 return false; | |
51 } | |
52 | 46 |
53 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 47 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
54 getter_ = getter; | 48 getter_ = getter; |
55 } | 49 } |
56 | 50 |
57 private: | 51 private: |
58 ShellURLRequestContextGetter* getter_; | 52 ShellURLRequestContextGetter* getter_; |
59 | 53 |
60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 54 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
61 }; | 55 }; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 196 |
203 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { | 197 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { |
204 return NULL; | 198 return NULL; |
205 } | 199 } |
206 | 200 |
207 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { | 201 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { |
208 return NULL; | 202 return NULL; |
209 } | 203 } |
210 | 204 |
211 } // namespace content | 205 } // namespace content |
OLD | NEW |