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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2646833002: Add IPC to query capabilities of video input devices. (Closed)
Patch Set: address comment from clamy Created 3 years, 10 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/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 } 2351 }
2352 2352
2353 bool WebContentsImpl::CheckMediaAccessPermission(const GURL& security_origin, 2353 bool WebContentsImpl::CheckMediaAccessPermission(const GURL& security_origin,
2354 MediaStreamType type) { 2354 MediaStreamType type) {
2355 DCHECK(type == MEDIA_DEVICE_AUDIO_CAPTURE || 2355 DCHECK(type == MEDIA_DEVICE_AUDIO_CAPTURE ||
2356 type == MEDIA_DEVICE_VIDEO_CAPTURE); 2356 type == MEDIA_DEVICE_VIDEO_CAPTURE);
2357 return delegate_ && 2357 return delegate_ &&
2358 delegate_->CheckMediaAccessPermission(this, security_origin, type); 2358 delegate_->CheckMediaAccessPermission(this, security_origin, type);
2359 } 2359 }
2360 2360
2361 std::string WebContentsImpl::GetDefaultMediaDeviceID(MediaStreamType type) {
2362 if (!delegate_)
2363 return std::string();
2364 return delegate_->GetDefaultMediaDeviceID(this, type);
2365 }
2366
2361 SessionStorageNamespace* WebContentsImpl::GetSessionStorageNamespace( 2367 SessionStorageNamespace* WebContentsImpl::GetSessionStorageNamespace(
2362 SiteInstance* instance) { 2368 SiteInstance* instance) {
2363 return controller_.GetSessionStorageNamespace(instance); 2369 return controller_.GetSessionStorageNamespace(instance);
2364 } 2370 }
2365 2371
2366 SessionStorageNamespaceMap WebContentsImpl::GetSessionStorageNamespaceMap() { 2372 SessionStorageNamespaceMap WebContentsImpl::GetSessionStorageNamespaceMap() {
2367 return controller_.GetSessionStorageNamespaceMap(); 2373 return controller_.GetSessionStorageNamespaceMap();
2368 } 2374 }
2369 2375
2370 FrameTree* WebContentsImpl::GetFrameTree() { 2376 FrameTree* WebContentsImpl::GetFrameTree() {
(...skipping 3048 matching lines...) Expand 10 before | Expand all | Expand 10 after
5419 GetMainFrame()->AddMessageToConsole( 5425 GetMainFrame()->AddMessageToConsole(
5420 content::CONSOLE_MESSAGE_LEVEL_WARNING, 5426 content::CONSOLE_MESSAGE_LEVEL_WARNING,
5421 base::StringPrintf("This site does not have a valid SSL " 5427 base::StringPrintf("This site does not have a valid SSL "
5422 "certificate! Without SSL, your site's and " 5428 "certificate! Without SSL, your site's and "
5423 "visitors' data is vulnerable to theft and " 5429 "visitors' data is vulnerable to theft and "
5424 "tampering. Get a valid SSL certificate before" 5430 "tampering. Get a valid SSL certificate before"
5425 " releasing your website to the public.")); 5431 " releasing your website to the public."));
5426 } 5432 }
5427 5433
5428 } // namespace content 5434 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/media/media_devices.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698