Chromium Code Reviews| 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 // Defines the Chrome Extensions Tab Capture API functions for accessing | |
| 6 // tab media streams. | |
| 7 | |
| 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_ | |
| 9 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_ | |
| 10 | |
| 11 #include "chrome/browser/extensions/api/api_function.h" | |
| 12 #include "chrome/common/extensions/api/experimental_tab_capture.h" | |
| 13 | |
| 14 namespace extensions { | |
| 15 | |
| 16 class TabCaptureAsyncApiFunction : public AsyncApiFunction { | |
|
Aaron Boodman
2012/10/04 07:21:43
Is it possible to use IOThreadExtensionFunction in
justinlin
2012/10/08 09:58:31
I can't seem to return a value when I use that int
Aaron Boodman
2012/10/16 04:19:27
ExtensionFunctionDispatcher is handling this funct
Aaron Boodman
2012/10/16 04:22:28
Note: This comment only applies if http://coderevi
justinlin
2012/10/17 08:32:26
OK, so from what I can tell, this would make the f
| |
| 17 public: | |
| 18 TabCaptureAsyncApiFunction(); | |
| 19 | |
| 20 protected: | |
| 21 virtual ~TabCaptureAsyncApiFunction(); | |
| 22 | |
| 23 // AsyncApiFunction: | |
| 24 virtual bool Respond() OVERRIDE; | |
| 25 }; | |
| 26 | |
| 27 class TabCaptureGetTabMediaFunction : public TabCaptureAsyncApiFunction { | |
| 28 public: | |
| 29 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tabCapture.getTabMedia"); | |
| 30 TabCaptureGetTabMediaFunction(); | |
| 31 | |
| 32 protected: | |
| 33 virtual ~TabCaptureGetTabMediaFunction(); | |
| 34 | |
| 35 // AsyncApiFunction: | |
| 36 virtual bool Prepare() OVERRIDE; | |
| 37 virtual void Work() OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 scoped_ptr<api::experimental_tab_capture::GetTabMedia::Params> params_; | |
| 41 }; | |
| 42 | |
| 43 class TabCaptureGetCapturedTabsFunction : public TabCaptureAsyncApiFunction { | |
| 44 public: | |
| 45 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tabCapture.getCapturedTabs"); | |
| 46 TabCaptureGetCapturedTabsFunction(); | |
| 47 | |
| 48 protected: | |
| 49 virtual ~TabCaptureGetCapturedTabsFunction(); | |
| 50 | |
| 51 // AsyncApiFunction: | |
| 52 virtual bool Prepare() OVERRIDE; | |
| 53 virtual void Work() OVERRIDE; | |
| 54 | |
| 55 private: | |
| 56 }; | |
| 57 | |
| 58 } // namespace extensions | |
| 59 | |
| 60 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_ | |
| OLD | NEW |