OLD | NEW |
(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_ |
OLD | NEW |