| 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 "android_webview/browser/aw_resource_context.h" | 5 #include "android_webview/browser/aw_resource_context.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_thread.h" | 7 #include "content/public/browser/browser_thread.h" |
| 8 #include "net/url_request/url_request_context.h" | 8 #include "net/url_request/url_request_context.h" |
| 9 #include "net/url_request/url_request_context_getter.h" | 9 #include "net/url_request/url_request_context_getter.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 net::HostResolver* AwResourceContext::GetHostResolver() { | 41 net::HostResolver* AwResourceContext::GetHostResolver() { |
| 42 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 42 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
| 43 return getter_->GetURLRequestContext()->host_resolver(); | 43 return getter_->GetURLRequestContext()->host_resolver(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 net::URLRequestContext* AwResourceContext::GetRequestContext() { | 46 net::URLRequestContext* AwResourceContext::GetRequestContext() { |
| 47 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 47 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
| 48 return getter_->GetURLRequestContext(); | 48 return getter_->GetURLRequestContext(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool AwResourceContext::AllowMicAccess(const GURL& origin) { | |
| 52 return false; | |
| 53 } | |
| 54 | |
| 55 bool AwResourceContext::AllowCameraAccess(const GURL& origin) { | |
| 56 return false; | |
| 57 } | |
| 58 | |
| 59 } // namespace android_webview | 51 } // namespace android_webview |
| OLD | NEW |