diff options
author | Vitaly Buka <vitalybuka@google.com> | 2015-12-08 16:17:01 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2015-12-09 00:51:45 +0000 |
commit | 3d851b43ae4a779b507b253dd920c6c33497722f (patch) | |
tree | fa5294c76ddee8679dc8a0d07d2ff14d8592e07a /src/device_registration_info.h | |
parent | 2033433d222c8c8aa56c94660e8e823dac71f45d (diff) | |
download | libweave-3d851b43ae4a779b507b253dd920c6c33497722f.tar.gz |
Change ownership of AuthManager as it's needed by DeviceRegistrationInfo
BUG=25766813
Change-Id: I832e0ee9e440ecc4a754dd6d4dacd3c171fbab21
Reviewed-on: https://weave-review.googlesource.com/1825
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
Diffstat (limited to 'src/device_registration_info.h')
-rw-r--r-- | src/device_registration_info.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/device_registration_info.h b/src/device_registration_info.h index bacab48..b1b9293 100644 --- a/src/device_registration_info.h +++ b/src/device_registration_info.h @@ -41,6 +41,10 @@ class Network; class TaskRunner; } +namespace privet { +class AuthManager; +} + extern const char kErrorDomainOAuth2[]; extern const char kErrorDomainGCD[]; extern const char kErrorDomainGCDServer[]; @@ -53,12 +57,13 @@ class DeviceRegistrationInfo : public NotificationDelegate, base::Callback<void(const base::DictionaryValue& response, ErrorPtr error)>; - DeviceRegistrationInfo( - ComponentManager* component_manager, - std::unique_ptr<Config> config, - provider::TaskRunner* task_runner, - provider::HttpClient* http_client, - provider::Network* network); + DeviceRegistrationInfo(ComponentManager* component_manager, + std::unique_ptr<Config> + config, + provider::TaskRunner* task_runner, + provider::HttpClient* http_client, + provider::Network* network, + privet::AuthManager* auth_manager); ~DeviceRegistrationInfo() override; @@ -337,6 +342,7 @@ class DeviceRegistrationInfo : public NotificationDelegate, bool notification_channel_starting_{false}; provider::Network* network_{nullptr}; + privet::AuthManager* auth_manager_{nullptr}; // Tracks our GCD state. GcdState gcd_state_{GcdState::kUnconfigured}; |