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

Side by Side Diff: chrome/browser/media/android/router/media_router_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
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 CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const MediaSource& source, 153 const MediaSource& source,
154 const std::string& presentation_id, 154 const std::string& presentation_id,
155 const std::vector<MediaRouteResponseCallback>& callbacks); 155 const std::vector<MediaRouteResponseCallback>& callbacks);
156 ~MediaRouteRequest(); 156 ~MediaRouteRequest();
157 157
158 MediaSource media_source; 158 MediaSource media_source;
159 std::string presentation_id; 159 std::string presentation_id;
160 std::vector<MediaRouteResponseCallback> callbacks; 160 std::vector<MediaRouteResponseCallback> callbacks;
161 }; 161 };
162 162
163 using MediaRouteRequests = 163 using MediaRouteRequests = IDMap<std::unique_ptr<MediaRouteRequest>>;
164 IDMap<MediaRouteRequest, IDMapOwnPointer>;
165 MediaRouteRequests route_requests_; 164 MediaRouteRequests route_requests_;
166 165
167 using MediaRoutes = std::vector<MediaRoute>; 166 using MediaRoutes = std::vector<MediaRoute>;
168 MediaRoutes active_routes_; 167 MediaRoutes active_routes_;
169 168
170 using SendMessageCallbacks = IDMap<SendRouteMessageCallback, IDMapOwnPointer>; 169 using SendMessageCallbacks = IDMap<std::unique_ptr<SendRouteMessageCallback>>;
171 SendMessageCallbacks message_callbacks_; 170 SendMessageCallbacks message_callbacks_;
172 171
173 using MessageObservers = base::ScopedPtrHashMap< 172 using MessageObservers = base::ScopedPtrHashMap<
174 MediaRoute::Id, std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; 173 MediaRoute::Id, std::unique_ptr<base::ObserverList<RouteMessageObserver>>>;
175 MessageObservers message_observers_; 174 MessageObservers message_observers_;
176 175
177 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); 176 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid);
178 }; 177 };
179 178
180 } // namespace media_router 179 } // namespace media_router
181 180
182 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 181 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/service_tab_launcher.h ('k') | chrome/browser/media/cast_transport_host_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698