OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_
H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_
H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_
H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_
H_ |
7 | 7 |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
9 | 9 |
10 namespace copresence { | 10 namespace audio_modem { |
11 class WhispernetClient; | 11 class WhispernetClient; |
12 } | 12 } |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class CopresencePrivateFunction : public ChromeUIThreadExtensionFunction { | 16 class CopresencePrivateFunction : public ChromeUIThreadExtensionFunction { |
17 protected: | 17 protected: |
18 copresence::WhispernetClient* GetWhispernetClient(); | 18 audio_modem::WhispernetClient* GetWhispernetClient(); |
19 ~CopresencePrivateFunction() override {} | 19 ~CopresencePrivateFunction() override {} |
20 }; | 20 }; |
21 | 21 |
22 class CopresencePrivateSendFoundFunction : public CopresencePrivateFunction { | 22 class CopresencePrivateSendFoundFunction : public CopresencePrivateFunction { |
23 public: | 23 public: |
24 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound", | 24 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound", |
25 COPRESENCEPRIVATE_SENDFOUND); | 25 COPRESENCEPRIVATE_SENDFOUND); |
26 | 26 |
27 protected: | 27 protected: |
28 ~CopresencePrivateSendFoundFunction() override {} | 28 ~CopresencePrivateSendFoundFunction() override {} |
(...skipping 27 matching lines...) Expand all Loading... |
56 COPRESENCEPRIVATE_SENDINITIALIZED); | 56 COPRESENCEPRIVATE_SENDINITIALIZED); |
57 | 57 |
58 protected: | 58 protected: |
59 ~CopresencePrivateSendInitializedFunction() override {} | 59 ~CopresencePrivateSendInitializedFunction() override {} |
60 ExtensionFunction::ResponseAction Run() override; | 60 ExtensionFunction::ResponseAction Run() override; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace extensions | 63 } // namespace extensions |
64 | 64 |
65 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_A
PI_H_ | 65 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_A
PI_H_ |
OLD | NEW |