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

Side by Side Diff: content/browser/renderer_host/media/peer_connection_tracker_host.h

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to #407492(Jul 25) Created 4 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PEER_CONNECTION_TRACKER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/power_monitor/power_observer.h" 11 #include "base/power_monitor/power_observer.h"
12 #include "content/public/browser/browser_message_filter.h" 12 #include "content/public/browser/browser_message_filter.h"
13 13
14 struct PeerConnectionInfo; 14 struct PeerConnectionInfo;
15 struct VideoInfo;
15 16
16 namespace base { 17 namespace base {
17 class ListValue; 18 class ListValue;
18 } // namespace base 19 } // namespace base
19 20
20 namespace content { 21 namespace content {
21 22
22 class WebRTCEventLogHost; 23 class WebRTCEventLogHost;
23 24
24 // This class is the host for PeerConnectionTracker in the browser process 25 // This class is the host for PeerConnectionTracker in the browser process
(...skipping 21 matching lines...) Expand all
46 47
47 private: 48 private:
48 // Handlers for peer connection messages coming from the renderer. 49 // Handlers for peer connection messages coming from the renderer.
49 void OnAddPeerConnection(const PeerConnectionInfo& info); 50 void OnAddPeerConnection(const PeerConnectionInfo& info);
50 void OnRemovePeerConnection(int lid); 51 void OnRemovePeerConnection(int lid);
51 void OnUpdatePeerConnection( 52 void OnUpdatePeerConnection(
52 int lid, const std::string& type, const std::string& value); 53 int lid, const std::string& type, const std::string& value);
53 void OnAddStats(int lid, const base::ListValue& value); 54 void OnAddStats(int lid, const base::ListValue& value);
54 void OnGetUserMedia(const std::string& origin, 55 void OnGetUserMedia(const std::string& origin,
55 bool audio, 56 bool audio,
56 bool video, 57 const VideoInfo& video_info,
57 const std::string& audio_constraints, 58 const std::string& audio_constraints,
58 const std::string& video_constraints); 59 const std::string& video_constraints);
59 void SendOnSuspendOnUIThread(); 60 void SendOnSuspendOnUIThread();
61 bool IsScreenCapture(const std::string& video_constraints);
60 62
61 int render_process_id_; 63 int render_process_id_;
64 bool is_screen_capture_;
62 65
63 WebRTCEventLogHost* const event_log_host_; 66 WebRTCEventLogHost* const event_log_host_;
64 67
65 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTrackerHost); 68 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTrackerHost);
66 }; 69 };
67 70
68 } // namespace content 71 } // namespace content
69 72
70 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_ 73 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_PEER_CONNECTION_TRACKER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698