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

Side by Side Diff: chrome/browser/media/media_internals_observer.h

Issue 11451006: Make TabCapture requests use the target render process and render view id's for UI permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
7 7
8 #include "content/public/browser/media_request_state.h" 8 #include "content/public/browser/media_request_state.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 10
11 // Used by MediaInternalsUI to receive callbacks on media events. 11 // Used by MediaInternalsUI to receive callbacks on media events.
12 // Callbacks will be on the IO thread. 12 // Callbacks will be on the IO thread.
13 class MediaInternalsObserver { 13 class MediaInternalsObserver {
14 public: 14 public:
15 // Handle an information update consisting of a javascript function call. 15 // Handle an information update consisting of a javascript function call.
16 virtual void OnUpdate(const string16& javascript) {} 16 virtual void OnUpdate(const string16& javascript) {}
17 17
18 // Handle an information update related to a media stream request. 18 // Handle an information update related to a media stream request.
19 virtual void OnRequestUpdate( 19 virtual void OnRequestUpdate(
20 int render_process_id,
21 int render_view_id,
20 const content::MediaStreamDevice& device, 22 const content::MediaStreamDevice& device,
21 const content::MediaRequestState state) {} 23 const content::MediaRequestState state) {}
22 24
23 virtual ~MediaInternalsObserver() {} 25 virtual ~MediaInternalsObserver() {}
24 }; 26 };
25 27
26 #endif // CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_ 28 #endif // CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698