OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIVATE
_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIVATE
_API_H_ |
| 7 |
| 8 #include "extensions/browser/extension_function.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class MediaPerceptionPrivateGetStateFunction |
| 13 : public UIThreadExtensionFunction { |
| 14 public: |
| 15 MediaPerceptionPrivateGetStateFunction(); |
| 16 DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.getState", |
| 17 MEDIAPERCEPTIONPRIVATE_GETSTATE); |
| 18 |
| 19 private: |
| 20 ~MediaPerceptionPrivateGetStateFunction() override; |
| 21 |
| 22 // ExtensionFunction: |
| 23 ResponseAction Run() override; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateGetStateFunction); |
| 26 }; |
| 27 |
| 28 class MediaPerceptionPrivateSetStateFunction |
| 29 : public UIThreadExtensionFunction { |
| 30 public: |
| 31 MediaPerceptionPrivateSetStateFunction(); |
| 32 DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.setState", |
| 33 MEDIAPERCEPTIONPRIVATE_SETSTATE); |
| 34 |
| 35 private: |
| 36 ~MediaPerceptionPrivateSetStateFunction() override; |
| 37 |
| 38 // ExtensionFunction: |
| 39 ResponseAction Run() override; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateSetStateFunction); |
| 42 }; |
| 43 |
| 44 class MediaPerceptionPrivateGetDiagnosticsFunction |
| 45 : public UIThreadExtensionFunction { |
| 46 public: |
| 47 MediaPerceptionPrivateGetDiagnosticsFunction(); |
| 48 DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.getDiagnostics", |
| 49 MEDIAPERCEPTIONPRIVATE_GETDIAGNOSTICS); |
| 50 |
| 51 private: |
| 52 ~MediaPerceptionPrivateGetDiagnosticsFunction() override; |
| 53 |
| 54 // ExtensionFunction: |
| 55 ResponseAction Run() override; |
| 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateGetDiagnosticsFunction); |
| 58 }; |
| 59 |
| 60 } // namespace extensions |
| 61 |
| 62 #endif // EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIV
ATE_API_H_ |
OLD | NEW |