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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void DoGetToken( | 59 void DoGetToken( |
60 const std::string& authorized_entity, | 60 const std::string& authorized_entity, |
61 const std::string& scope, | 61 const std::string& scope, |
62 const std::map<std::string, std::string>& options, | 62 const std::map<std::string, std::string>& options, |
63 const GetTokenCallback& callback); | 63 const GetTokenCallback& callback); |
64 void DoDeleteToken(const std::string& authorized_entity, | 64 void DoDeleteToken(const std::string& authorized_entity, |
65 const std::string& scope, | 65 const std::string& scope, |
66 const DeleteTokenCallback& callback); | 66 const DeleteTokenCallback& callback); |
67 void DoDeleteID(const DeleteIDCallback& callback); | 67 void DoDeleteID(const DeleteIDCallback& callback); |
68 | 68 |
| 69 // Owned by GCMProfileServiceFactory, which is a dependency of |
| 70 // InstanceIDProfileServiceFactory, which owns this. |
| 71 gcm::InstanceIDHandler* handler_; |
| 72 |
69 gcm::GCMDelayedTaskController delayed_task_controller_; | 73 gcm::GCMDelayedTaskController delayed_task_controller_; |
70 | 74 |
71 // The generated Instance ID. | 75 // The generated Instance ID. |
72 std::string id_; | 76 std::string id_; |
73 | 77 |
74 // The time when the Instance ID has been generated. | 78 // The time when the Instance ID has been generated. |
75 base::Time creation_time_; | 79 base::Time creation_time_; |
76 | 80 |
77 base::WeakPtrFactory<InstanceIDImpl> weak_ptr_factory_; | 81 base::WeakPtrFactory<InstanceIDImpl> weak_ptr_factory_; |
78 | 82 |
79 DISALLOW_COPY_AND_ASSIGN(InstanceIDImpl); | 83 DISALLOW_COPY_AND_ASSIGN(InstanceIDImpl); |
80 }; | 84 }; |
81 | 85 |
82 } // namespace instance_id | 86 } // namespace instance_id |
83 | 87 |
84 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ | 88 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_IMPL_H_ |
OLD | NEW |