OLD | NEW |
---|---|
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | |
11 | |
10 namespace content { | 12 namespace content { |
11 | 13 |
12 class WebContentsCaptureUtil { | 14 class CONTENT_EXPORT WebContentsCaptureUtil { |
miu
2013/02/20 06:45:10
I'm assuming this is for the unittest linkage?
ncarter (slow)
2013/02/22 02:16:11
Yes.
| |
13 public: | 15 public: |
14 // Returns a new id after appending the device id scheme for virtual streams. | 16 // Returns a new id after appending the device id scheme for virtual streams. |
15 static std::string AppendWebContentsDeviceScheme( | 17 static std::string AppendWebContentsDeviceScheme( |
16 const std::string& device_id_param); | 18 const std::string& device_id_param); |
17 | 19 |
18 static std::string StripWebContentsDeviceScheme( | 20 static std::string StripWebContentsDeviceScheme( |
19 const std::string& device_id_param); | 21 const std::string& device_id_param); |
20 | 22 |
21 // Check whether the device id indicates that this is a web contents stream. | 23 // Check whether the device id indicates that this is a web contents stream. |
22 static bool IsWebContentsDeviceId(const std::string& device_id); | 24 static bool IsWebContentsDeviceId(const std::string& device_id); |
23 | 25 |
24 // Function to extract the target renderer id's from a tab media stream | 26 // Function to extract the target renderer id's from a tab media stream |
25 // request's device id. | 27 // request's device id. |
26 static bool ExtractTabCaptureTarget(const std::string& device_id, | 28 static bool ExtractTabCaptureTarget(const std::string& device_id, |
27 int* render_process_id, | 29 int* render_process_id, |
28 int* render_view_id); | 30 int* render_view_id); |
29 }; | 31 }; |
30 | 32 |
31 } // namespace content | 33 } // namespace content |
32 | 34 |
33 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ | 35 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_CAPTURE_UTIL_H_ |
OLD | NEW |