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

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

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 2 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) 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/common/media_stream_request.h"
9
8 // Used by MediaInternalsUI to receive callbacks on media events. 10 // Used by MediaInternalsUI to receive callbacks on media events.
9 // Callbacks will be on the IO thread. 11 // Callbacks will be on the IO thread.
10 class MediaInternalsObserver { 12 class MediaInternalsObserver {
11 public: 13 public:
12 // Handle an information update consisting of a javascript function call. 14 // Handle an information update consisting of a javascript function call.
13 virtual void OnUpdate(const string16& javascript) = 0; 15 virtual void OnUpdate(const string16& javascript) {}
16 // Handle an information update related to a media stream request.
17 virtual void OnRequestUpdate(
perkj_chrome 2012/10/04 08:19:25 I don't understand this. What is it doing and why?
justinlin 2012/10/08 08:59:45 It's to allow chrome extensions to listen to strea
18 const content::MediaStreamDevice& device,
19 const content::MediaStreamRequest::RequestState state) {}
14 virtual ~MediaInternalsObserver() {} 20 virtual ~MediaInternalsObserver() {}
15 }; 21 };
16 22
17 #endif // CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_ 23 #endif // CHROME_BROWSER_MEDIA_MEDIA_INTERNALS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698