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

Side by Side Diff: chrome/browser/extensions/api/copresence_private/copresence_private_api.h

Issue 444513005: Add the Copresence API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 copresence {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 : public CopresencePrivateFunction { 53 : public CopresencePrivateFunction {
54 public: 54 public:
55 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized", 55 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized",
56 COPRESENCEPRIVATE_SENDINITIALIZED); 56 COPRESENCEPRIVATE_SENDINITIALIZED);
57 57
58 protected: 58 protected:
59 virtual ~CopresencePrivateSendInitializedFunction() {} 59 virtual ~CopresencePrivateSendInitializedFunction() {}
60 virtual ExtensionFunction::ResponseAction Run() OVERRIDE; 60 virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
61 }; 61 };
62 62
63 // This will go away once we check in the code for the CopresenceAPI BCK
64 // service which lets us inject a whispernet client.
65 void SetWhispernetClientForTesting(copresence::WhispernetClient* client);
66
67 } // namespace extensions 63 } // namespace extensions
68 64
69 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698