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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_event_router.h

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_EVENT_ROUTER_H_
7
8 #include <vector>
9
10 #include "base/string16.h"
11 #include "chrome/browser/media/media_internals.h"
12 #include "chrome/browser/media/media_internals_observer.h"
13 #include "content/public/common/media_stream_request.h"
14
15 class Profile;
16
17 namespace extensions {
18
19 // TODO(justinlin): This should be maybe be filtered/partitioned by extension.
20 class TabCaptureEventRouter : public MediaInternalsObserver {
21 public:
22 explicit TabCaptureEventRouter(Profile* profile);
23 virtual ~TabCaptureEventRouter();
24
25 std::vector<content::MediaStreamDevice>* GetCapturedTabs();
26
27 private:
28 // MediaInternalsObserver.
29 virtual void OnRequestUpdate(
30 const content::MediaStreamDevice& device,
31 const content::MediaStreamRequest::RequestState state) OVERRIDE;
32
33 Profile* const profile_;
34 DISALLOW_COPY_AND_ASSIGN(TabCaptureEventRouter);
35 };
36
37 } // namespace extension
38
39 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698