| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ | 6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const GetTokenCallback& callback); | 66 const GetTokenCallback& callback); |
| 67 void DoDeleteToken(const std::string& authorized_entity, | 67 void DoDeleteToken(const std::string& authorized_entity, |
| 68 const std::string& scope, | 68 const std::string& scope, |
| 69 const DeleteTokenCallback& callback); | 69 const DeleteTokenCallback& callback); |
| 70 void DoDeleteID(const DeleteIDCallback& callback); | 70 void DoDeleteID(const DeleteIDCallback& callback); |
| 71 | 71 |
| 72 gcm::GCMDriver* gcm_driver_; // Not owned. | 72 gcm::GCMDriver* gcm_driver_; // Not owned. |
| 73 | 73 |
| 74 gcm::GCMDelayedTaskController delayed_task_controller_; | 74 gcm::GCMDelayedTaskController delayed_task_controller_; |
| 75 | 75 |
| 76 // Flag to indicate that we have tries to load the data from the store. | |
| 77 bool load_from_store_; | |
| 78 | |
| 79 // The generated Instance ID. | 76 // The generated Instance ID. |
| 80 std::string id_; | 77 std::string id_; |
| 81 | 78 |
| 82 // The time when the Instance ID has been generated. | 79 // The time when the Instance ID has been generated. |
| 83 base::Time creation_time_; | 80 base::Time creation_time_; |
| 84 | 81 |
| 85 base::WeakPtrFactory<InstanceIDImpl> weak_ptr_factory_; | 82 base::WeakPtrFactory<InstanceIDImpl> weak_ptr_factory_; |
| 86 | 83 |
| 87 DISALLOW_COPY_AND_ASSIGN(InstanceIDImpl); | 84 DISALLOW_COPY_AND_ASSIGN(InstanceIDImpl); |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace instance_id | 87 } // namespace instance_id |
| 91 | 88 |
| 92 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ | 89 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ |
| OLD | NEW |