Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: components/gcm_driver/instance_id/instance_id_impl.h

Issue 1830983002: Implement InstanceIDAndroid using InstanceIDWithSubtype.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid1subtype
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698