Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: android_webview/browser/aw_resource_context.cc

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for Android. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698