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

Side by Side Diff: chrome/browser/media/media_capture_devices_dispatcher.cc

Issue 391263002: Cast: cast.streaming API to support null audio (or video) track (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: idl compiler Created 6 years, 5 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 (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 "chrome/browser/media/media_capture_devices_dispatcher.h" 5 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
6 6
7 #include "apps/app_window.h" 7 #include "apps/app_window.h"
8 #include "apps/app_window_registry.h" 8 #include "apps/app_window_registry.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 bool IsBuiltInExtension(const GURL& origin) { 113 bool IsBuiltInExtension(const GURL& origin) {
114 return 114 return
115 // Feedback Extension. 115 // Feedback Extension.
116 origin.spec() == "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/"; 116 origin.spec() == "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/";
117 } 117 }
118 118
119 // Returns true of the security origin is associated with casting. 119 // Returns true of the security origin is associated with casting.
120 bool IsOriginForCasting(const GURL& origin) { 120 bool IsOriginForCasting(const GURL& origin) {
121 #if defined(OFFICIAL_BUILD)
122 // Whitelisted tab casting extensions. 121 // Whitelisted tab casting extensions.
123 return 122 return
124 // Dev 123 // Dev
125 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" || 124 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" ||
126 // Canary 125 // Canary
127 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" || 126 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" ||
128 // Beta (internal) 127 // Beta (internal)
129 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" || 128 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" ||
130 // Google Cast Beta 129 // Google Cast Beta
131 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" || 130 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" ||
132 // Google Cast Stable 131 // Google Cast Stable
133 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/"; 132 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/";
134 #else
135 return false;
136 #endif
137 } 133 }
138 134
139 // Helper to get title of the calling application shown in the screen capture 135 // Helper to get title of the calling application shown in the screen capture
140 // notification. 136 // notification.
141 base::string16 GetApplicationTitle(content::WebContents* web_contents, 137 base::string16 GetApplicationTitle(content::WebContents* web_contents,
142 const extensions::Extension* extension) { 138 const extensions::Extension* extension) {
143 // Use extension name as title for extensions and host/origin for drive-by 139 // Use extension name as title for extensions and host/origin for drive-by
144 // web. 140 // web.
145 std::string title; 141 std::string title;
146 if (extension) { 142 if (extension) {
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 979
984 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices( 980 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices(
985 const MediaStreamDevices& devices) { 981 const MediaStreamDevices& devices) {
986 test_audio_devices_ = devices; 982 test_audio_devices_ = devices;
987 } 983 }
988 984
989 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices( 985 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices(
990 const MediaStreamDevices& devices) { 986 const MediaStreamDevices& devices) {
991 test_video_devices_ = devices; 987 test_video_devices_ = devices;
992 } 988 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698