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

Side by Side Diff: content/shell/browser/shell_browser_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: Rebase. 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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698