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

Side by Side Diff: extensions/browser/api/media_perception_private/media_perception_private_api.h

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: C++ test impl and target Created 3 years, 8 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
OLDNEW
(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 #include "extensions/common/api/media_perception_private.h"
10
11 namespace extensions {
12
13 class MediaPerceptionPrivateGetStateFunction : public AsyncExtensionFunction {
14 public:
15 MediaPerceptionPrivateGetStateFunction();
16 DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.getState",
17 MEDIAPERCEPTIONPRIVATE_GETSTATE);
18
19 protected:
20 ~MediaPerceptionPrivateGetStateFunction() override;
21 bool RunAsync() override;
22
23 DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateGetStateFunction);
24 };
25
26 class MediaPerceptionPrivateSetStateFunction : public AsyncExtensionFunction {
27 public:
28 MediaPerceptionPrivateSetStateFunction();
29 DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.setState",
30 MEDIAPERCEPTIONPRIVATE_SETSTATE);
31
32 protected:
33 ~MediaPerceptionPrivateSetStateFunction() override;
34 bool RunAsync() override;
35
36 DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateSetStateFunction);
37 };
38
39 } // namespace extensions
40
41 #endif // EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIV ATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698