| Index: chrome/browser/extensions/api/copresence/copresence_api.h
|
| diff --git a/chrome/browser/extensions/api/copresence/copresence_api.h b/chrome/browser/extensions/api/copresence/copresence_api.h
|
| index 7682f312d4cf1adcba9828d82451852e44d9e78d..01e56dda9de1b36e31ec1f7c6dec2d12bca4f42d 100644
|
| --- a/chrome/browser/extensions/api/copresence/copresence_api.h
|
| +++ b/chrome/browser/extensions/api/copresence/copresence_api.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_API_H_
|
|
|
| #include <map>
|
| +#include <set>
|
| #include <string>
|
| #include <vector>
|
|
|
| @@ -45,6 +46,8 @@ class CopresenceService : public BrowserContextKeyedAPI,
|
| return apps_by_subscription_id_;
|
| }
|
|
|
| + std::set<std::string>& copresence_apps() { return copresence_apps_; }
|
| +
|
| void set_api_key(const std::string& app_id,
|
| const std::string& api_key);
|
| void set_auth_token(const std::string& token);
|
| @@ -63,6 +66,7 @@ class CopresenceService : public BrowserContextKeyedAPI,
|
| void HandleMessages(const std::string& app_id,
|
| const std::string& subscription_id,
|
| const std::vector<copresence::Message>& message) override;
|
| + void HandleStatusUpdate(copresence::CopresenceStatus status) override;
|
| net::URLRequestContextGetter* GetRequestContext() const override;
|
| const std::string GetPlatformVersionString() const override;
|
| const std::string GetAPIKey(const std::string& app_id) const override;
|
| @@ -74,6 +78,7 @@ class CopresenceService : public BrowserContextKeyedAPI,
|
|
|
| bool is_shutting_down_;
|
| std::map<std::string, std::string> apps_by_subscription_id_;
|
| + std::set<std::string> copresence_apps_;
|
|
|
| content::BrowserContext* const browser_context_;
|
| std::map<std::string, std::string> api_keys_by_app_;
|
|
|