Lines Matching refs:DeviceRegistrationInfo
234 DeviceRegistrationInfo::DeviceRegistrationInfo( in DeviceRegistrationInfo() function in weave::DeviceRegistrationInfo
264 &DeviceRegistrationInfo::OnTraitDefsChanged, weak_factory_.GetWeakPtr()));
266 base::Bind(&DeviceRegistrationInfo::OnComponentTreeChanged,
269 &DeviceRegistrationInfo::OnStateChanged, weak_factory_.GetWeakPtr()));
272 DeviceRegistrationInfo::~DeviceRegistrationInfo() = default;
274 std::string DeviceRegistrationInfo::GetServiceURL( in GetServiceURL()
280 std::string DeviceRegistrationInfo::GetDeviceURL( in GetDeviceURL()
288 std::string DeviceRegistrationInfo::GetOAuthURL( in GetOAuthURL()
294 void DeviceRegistrationInfo::Start() { in Start()
307 void DeviceRegistrationInfo::ScheduleCloudConnection( in ScheduleCloudConnection()
314 base::Bind(&DeviceRegistrationInfo::ConnectToCloud, AsWeakPtr(), nullptr), in ScheduleCloudConnection()
318 bool DeviceRegistrationInfo::HaveRegistrationCredentials() const { in HaveRegistrationCredentials()
324 bool DeviceRegistrationInfo::VerifyRegistrationCredentials( in VerifyRegistrationCredentials()
338 DeviceRegistrationInfo::ParseOAuthResponse(const HttpClient::Response& response, in ParseOAuthResponse()
360 void DeviceRegistrationInfo::RefreshAccessToken(const DoneCallback& callback) { in RefreshAccessToken()
372 FROM_HERE, base::Bind(&DeviceRegistrationInfo::RefreshAccessToken, in RefreshAccessToken()
386 sender.Send(base::Bind(&DeviceRegistrationInfo::OnRefreshAccessTokenDone, in RefreshAccessToken()
391 void DeviceRegistrationInfo::OnRefreshAccessTokenDone( in OnRefreshAccessTokenDone()
432 void DeviceRegistrationInfo::StartNotificationChannel() { in StartNotificationChannel()
472 void DeviceRegistrationInfo::AddGcdStateChangedCallback( in AddGcdStateChangedCallback()
479 DeviceRegistrationInfo::BuildDeviceResource() const { in BuildDeviceResource()
504 void DeviceRegistrationInfo::GetDeviceInfo( in GetDeviceInfo()
512 void DeviceRegistrationInfo::RegisterDeviceError(const DoneCallback& callback, in RegisterDeviceError()
518 void DeviceRegistrationInfo::RegisterDevice(const std::string& ticket_id, in RegisterDevice()
540 sender.Send(base::Bind(&DeviceRegistrationInfo::RegisterDeviceOnTicketSent, in RegisterDevice()
544 void DeviceRegistrationInfo::RegisterDeviceOnTicketSent( in RegisterDeviceOnTicketSent()
564 base::Bind(&DeviceRegistrationInfo::RegisterDeviceOnTicketFinalized, in RegisterDeviceOnTicketSent()
568 void DeviceRegistrationInfo::RegisterDeviceOnTicketFinalized( in RegisterDeviceOnTicketFinalized()
605 sender2.Send(base::Bind(&DeviceRegistrationInfo::RegisterDeviceOnAuthCodeSent, in RegisterDeviceOnTicketFinalized()
610 void DeviceRegistrationInfo::RegisterDeviceOnAuthCodeSent( in RegisterDeviceOnAuthCodeSent()
649 void DeviceRegistrationInfo::DoCloudRequest( in DoCloudRequest()
667 void DeviceRegistrationInfo::SendCloudRequest( in SendCloudRequest()
682 FROM_HERE, base::Bind(&DeviceRegistrationInfo::SendCloudRequest, in SendCloudRequest()
690 sender.Send(base::Bind(&DeviceRegistrationInfo::OnCloudRequestDone, in SendCloudRequest()
694 void DeviceRegistrationInfo::OnCloudRequestDone( in OnCloudRequestDone()
704 &DeviceRegistrationInfo::OnAccessTokenRefreshed, AsWeakPtr(), data)); in OnCloudRequestDone()
746 void DeviceRegistrationInfo::RetryCloudRequest( in RetryCloudRequest()
754 void DeviceRegistrationInfo::OnAccessTokenRefreshed( in OnAccessTokenRefreshed()
764 void DeviceRegistrationInfo::CheckAccessTokenError(ErrorPtr error) { in CheckAccessTokenError()
769 void DeviceRegistrationInfo::ConnectToCloud(ErrorPtr error) { in ConnectToCloud()
782 base::Bind(&DeviceRegistrationInfo::ConnectToCloud, AsWeakPtr())); in ConnectToCloud()
792 base::Bind(&DeviceRegistrationInfo::OnConnectedToCloud, AsWeakPtr())); in ConnectToCloud()
795 void DeviceRegistrationInfo::OnConnectedToCloud(ErrorPtr error) { in OnConnectedToCloud()
800 FetchCommands(base::Bind(&DeviceRegistrationInfo::ProcessInitialCommandList, in OnConnectedToCloud()
808 void DeviceRegistrationInfo::UpdateDeviceInfo(const std::string& name, in UpdateDeviceInfo()
822 void DeviceRegistrationInfo::UpdateBaseConfig(AuthScope anonymous_access_role, in UpdateBaseConfig()
831 bool DeviceRegistrationInfo::UpdateServiceConfig( in UpdateServiceConfig()
859 void DeviceRegistrationInfo::UpdateCommand( in UpdateCommand()
868 void DeviceRegistrationInfo::NotifyCommandAborted(const std::string& command_id, in NotifyCommandAborted()
880 void DeviceRegistrationInfo::UpdateDeviceResource( in UpdateDeviceResource()
891 void DeviceRegistrationInfo::StartQueuedUpdateDeviceResource() { in StartQueuedUpdateDeviceResource()
902 GetDeviceInfo(base::Bind(&DeviceRegistrationInfo::OnDeviceInfoRetrieved, in StartQueuedUpdateDeviceResource()
922 base::Bind(&DeviceRegistrationInfo::OnUpdateDeviceResourceDone, in StartQueuedUpdateDeviceResource()
926 void DeviceRegistrationInfo::SendAuthInfo() { in SendAuthInfo()
956 base::Bind(&DeviceRegistrationInfo::OnSendAuthInfoDone, in SendAuthInfo()
960 void DeviceRegistrationInfo::OnSendAuthInfoDone( in OnSendAuthInfoDone()
971 FROM_HERE, base::Bind(&DeviceRegistrationInfo::SendAuthInfo, AsWeakPtr()), in OnSendAuthInfoDone()
975 void DeviceRegistrationInfo::OnDeviceInfoRetrieved( in OnDeviceInfoRetrieved()
984 bool DeviceRegistrationInfo::UpdateDeviceInfoTimestamp( in UpdateDeviceInfoTimestamp()
998 void DeviceRegistrationInfo::OnUpdateDeviceResourceDone( in OnUpdateDeviceResourceDone()
1013 void DeviceRegistrationInfo::OnUpdateDeviceResourceError(ErrorPtr error) { in OnUpdateDeviceResourceError()
1018 GetDeviceInfo(base::Bind(&DeviceRegistrationInfo::OnDeviceInfoRetrieved, in OnUpdateDeviceResourceError()
1033 void DeviceRegistrationInfo::OnFetchCommandsDone( in OnFetchCommandsDone()
1047 void DeviceRegistrationInfo::OnFetchCommandsReturned() { in OnFetchCommandsReturned()
1054 void DeviceRegistrationInfo::FetchCommands( in FetchCommands()
1063 nullptr, base::Bind(&DeviceRegistrationInfo::OnFetchCommandsDone, in FetchCommands()
1067 void DeviceRegistrationInfo::FetchAndPublishCommands( in FetchAndPublishCommands()
1075 FetchCommands(base::Bind(&DeviceRegistrationInfo::PublishCommands, in FetchAndPublishCommands()
1080 void DeviceRegistrationInfo::ProcessInitialCommandList( in ProcessInitialCommandList()
1118 void DeviceRegistrationInfo::PublishCommands(const base::ListValue& commands, in PublishCommands()
1132 void DeviceRegistrationInfo::PublishCommand( in PublishCommand()
1162 void DeviceRegistrationInfo::PublishStateUpdates() { in PublishStateUpdates()
1188 base::Bind(&DeviceRegistrationInfo::OnPublishStateDone, in PublishStateUpdates()
1192 void DeviceRegistrationInfo::OnPublishStateDone( in OnPublishStateDone()
1207 void DeviceRegistrationInfo::SetGcdState(GcdState new_state) { in SetGcdState()
1215 void DeviceRegistrationInfo::OnTraitDefsChanged() { in OnTraitDefsChanged()
1223 void DeviceRegistrationInfo::OnStateChanged() { in OnStateChanged()
1232 void DeviceRegistrationInfo::OnComponentTreeChanged() { in OnComponentTreeChanged()
1240 void DeviceRegistrationInfo::OnConnected(const std::string& channel_name) { in OnConnected()
1262 base::Bind(&DeviceRegistrationInfo::FetchAndPublishCommands, in OnConnected()
1266 void DeviceRegistrationInfo::OnDisconnected() { in OnDisconnected()
1277 void DeviceRegistrationInfo::OnPermanentFailure() { in OnPermanentFailure()
1281 base::Bind(&DeviceRegistrationInfo::CheckAccessTokenError, AsWeakPtr())); in OnPermanentFailure()
1284 void DeviceRegistrationInfo::OnCommandCreated( in OnCommandCreated()
1315 void DeviceRegistrationInfo::OnDeviceDeleted(const std::string& cloud_id) { in OnDeviceDeleted()
1324 void DeviceRegistrationInfo::RemoveCredentials() { in RemoveCredentials()