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

Side by Side Diff: content/browser/media/capture/web_contents_capture_util.h

Issue 1503563004: Desktop chrome tab capture-chooseDesktopMedia() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_CAPTURE_UTIL_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_CAPTURE_UTIL_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 class CONTENT_EXPORT WebContentsCaptureUtil {
15 public:
16 // Check whether the device id indicates that this is a web contents stream.
17 static bool IsWebContentsDeviceId(const std::string& device_id);
18
19 // Function to extract the target render frame id's from a media stream
20 // request's device id.
21 static bool ExtractTabCaptureTarget(const std::string& device_id,
22 int* render_process_id,
23 int* main_render_frame_id);
24
25 // Parses the media stream request |device_id| and returns true if both 1) the
26 // format is valid, and 2) the throttling option is set to auto.
27 static bool IsAutoThrottlingOptionSet(const std::string& device_id);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_CAPTURE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698