| Index: components/copresence/public/copresence_delegate.h
|
| diff --git a/components/copresence/public/copresence_delegate.h b/components/copresence/public/copresence_delegate.h
|
| index 9dd30b7285029e280984610f1b7a3f69849fe30a..64371d564d123cb6d73cba0ed46216f6fb8dc2c1 100644
|
| --- a/components/copresence/public/copresence_delegate.h
|
| +++ b/components/copresence/public/copresence_delegate.h
|
| @@ -29,13 +29,14 @@ class CopresenceDelegate {
|
| public:
|
| virtual ~CopresenceDelegate() {}
|
|
|
| - // This method will be called when we have subscribed messages that need to
|
| - // be sent to their respective apps.
|
| + // This method will be called when we have subscribed messages
|
| + // that need to be sent to their respective apps.
|
| virtual void HandleMessages(
|
| const std::string& app_id,
|
| const std::string& subscription_id,
|
| const std::vector<Message>& message) = 0;
|
|
|
| + // Thw URLRequestContextGetter must outlive the CopresenceManager.
|
| virtual net::URLRequestContextGetter* GetRequestContext() const = 0;
|
|
|
| virtual const std::string GetPlatformVersionString() const = 0;
|
| @@ -43,6 +44,7 @@ class CopresenceDelegate {
|
| virtual const std::string GetAPIKey(const std::string& app_id) const = 0;
|
| virtual const std::string GetAuthToken() const = 0;
|
|
|
| + // Thw WhispernetClient must outlive the CopresenceManager.
|
| virtual WhispernetClient* GetWhispernetClient() = 0;
|
| };
|
|
|
|
|