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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 1706503002: Add enterprise policy to turn off Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix nits Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/public/browser/client_certificate_delegate.h" 9 #include "content/public/browser/client_certificate_delegate.h"
10 #include "content/public/common/sandbox_type.h" 10 #include "content/public/common/sandbox_type.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ResourceContext* context) { 215 ResourceContext* context) {
216 return true; 216 return true;
217 } 217 }
218 #endif // defined(ENABLE_WEBRTC) 218 #endif // defined(ENABLE_WEBRTC)
219 219
220 bool ContentBrowserClient::AllowKeygen(const GURL& url, 220 bool ContentBrowserClient::AllowKeygen(const GURL& url,
221 content::ResourceContext* context) { 221 content::ResourceContext* context) {
222 return true; 222 return true;
223 } 223 }
224 224
225 bool ContentBrowserClient::AllowWebBluetooth(
226 content::BrowserContext* browser_context,
227 const url::Origin& requesting_origin,
228 const url::Origin& embedding_origin) {
229 return true;
230 }
231
225 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 232 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
226 return nullptr; 233 return nullptr;
227 } 234 }
228 235
229 scoped_ptr<storage::QuotaEvictionPolicy> 236 scoped_ptr<storage::QuotaEvictionPolicy>
230 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( 237 ContentBrowserClient::GetTemporaryStorageEvictionPolicy(
231 content::BrowserContext* context) { 238 content::BrowserContext* context) {
232 return scoped_ptr<storage::QuotaEvictionPolicy>(); 239 return scoped_ptr<storage::QuotaEvictionPolicy>();
233 } 240 }
234 241
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 #if defined(VIDEO_HOLE) 433 #if defined(VIDEO_HOLE)
427 ExternalVideoSurfaceContainer* 434 ExternalVideoSurfaceContainer*
428 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 435 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
429 WebContents* web_contents) { 436 WebContents* web_contents) {
430 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 437 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
431 return nullptr; 438 return nullptr;
432 } 439 }
433 #endif 440 #endif
434 441
435 } // namespace content 442 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698