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

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

Issue 185863003: [Media] Add user gesture reporting for API calls to midi and media streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test merge Created 6 years, 9 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 protected: 62 protected:
63 virtual ~MediaStreamDispatcherHost(); 63 virtual ~MediaStreamDispatcherHost();
64 64
65 private: 65 private:
66 friend class MockMediaStreamDispatcherHost; 66 friend class MockMediaStreamDispatcherHost;
67 67
68 void OnGenerateStream(int render_view_id, 68 void OnGenerateStream(int render_view_id,
69 int page_request_id, 69 int page_request_id,
70 const StreamOptions& components, 70 const StreamOptions& components,
71 const GURL& security_origin); 71 const GURL& security_origin,
72 bool user_gesture);
72 void OnCancelGenerateStream(int render_view_id, 73 void OnCancelGenerateStream(int render_view_id,
73 int page_request_id); 74 int page_request_id);
74 void OnStopStreamDevice(int render_view_id, 75 void OnStopStreamDevice(int render_view_id,
75 const std::string& device_id); 76 const std::string& device_id);
76 77
77 void OnEnumerateDevices(int render_view_id, 78 void OnEnumerateDevices(int render_view_id,
78 int page_request_id, 79 int page_request_id,
79 MediaStreamType type, 80 MediaStreamType type,
80 const GURL& security_origin); 81 const GURL& security_origin);
81 82
(...skipping 18 matching lines...) Expand all
100 int render_process_id_; 101 int render_process_id_;
101 ResourceContext::SaltCallback salt_callback_; 102 ResourceContext::SaltCallback salt_callback_;
102 MediaStreamManager* media_stream_manager_; 103 MediaStreamManager* media_stream_manager_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); 105 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698