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

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

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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
« no previous file with comments | « components/drive/job_scheduler.h ('k') | components/spellcheck/renderer/spellcheck_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ANDROID_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_ 6 #define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 jint request_id, 73 jint request_id,
74 jboolean success); 74 jboolean success);
75 void DidDeleteID(JNIEnv* env, 75 void DidDeleteID(JNIEnv* env,
76 const base::android::JavaParamRef<jobject>& obj, 76 const base::android::JavaParamRef<jobject>& obj,
77 jint request_id, 77 jint request_id,
78 jboolean success); 78 jboolean success);
79 79
80 private: 80 private:
81 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 81 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
82 82
83 IDMap<GetIDCallback, IDMapOwnPointer> get_id_callbacks_; 83 IDMap<std::unique_ptr<GetIDCallback>> get_id_callbacks_;
84 IDMap<GetCreationTimeCallback, IDMapOwnPointer> get_creation_time_callbacks_; 84 IDMap<std::unique_ptr<GetCreationTimeCallback>> get_creation_time_callbacks_;
85 IDMap<GetTokenCallback, IDMapOwnPointer> get_token_callbacks_; 85 IDMap<std::unique_ptr<GetTokenCallback>> get_token_callbacks_;
86 IDMap<DeleteTokenCallback, IDMapOwnPointer> delete_token_callbacks_; 86 IDMap<std::unique_ptr<DeleteTokenCallback>> delete_token_callbacks_;
87 IDMap<DeleteIDCallback, IDMapOwnPointer> delete_id_callbacks_; 87 IDMap<std::unique_ptr<DeleteIDCallback>> delete_id_callbacks_;
88 88
89 base::ThreadChecker thread_checker_; 89 base::ThreadChecker thread_checker_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid); 91 DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroid);
92 }; 92 };
93 93
94 } // namespace instance_id 94 } // namespace instance_id
95 95
96 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_ 96 #endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_H_
OLDNEW
« no previous file with comments | « components/drive/job_scheduler.h ('k') | components/spellcheck/renderer/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698