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

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_ui.h

Issue 2678123003: Revert of Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Created 3 years, 10 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 CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void OnDefaultPresentationChanged( 263 void OnDefaultPresentationChanged(
264 const PresentationRequest& presentation_request) override; 264 const PresentationRequest& presentation_request) override;
265 void OnDefaultPresentationRemoved() override; 265 void OnDefaultPresentationRemoved() override;
266 266
267 // Populates common route-related parameters for CreateRoute(), 267 // Populates common route-related parameters for CreateRoute(),
268 // ConnectRoute(), and SearchSinksAndCreateRoute(). 268 // ConnectRoute(), and SearchSinksAndCreateRoute().
269 bool SetRouteParameters( 269 bool SetRouteParameters(
270 const MediaSink::Id& sink_id, 270 const MediaSink::Id& sink_id,
271 MediaCastMode cast_mode, 271 MediaCastMode cast_mode,
272 MediaSource::Id* source_id, 272 MediaSource::Id* source_id,
273 url::Origin* origin, 273 GURL* origin,
274 std::vector<MediaRouteResponseCallback>* route_response_callbacks, 274 std::vector<MediaRouteResponseCallback>* route_response_callbacks,
275 base::TimeDelta* timeout, 275 base::TimeDelta* timeout,
276 bool* incognito); 276 bool* incognito);
277 277
278 // Updates the set of supported cast modes and sends the updated set to 278 // Updates the set of supported cast modes and sends the updated set to
279 // |handler_|. 279 // |handler_|.
280 void UpdateCastModes(); 280 void UpdateCastModes();
281 281
282 // Updates the routes-to-cast-modes mapping in |routes_and_cast_modes_| to 282 // Updates the routes-to-cast-modes mapping in |routes_and_cast_modes_| to
283 // match the value of |routes_|. 283 // match the value of |routes_|.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // NOTE: Weak pointers must be invalidated before all other member variables. 351 // NOTE: Weak pointers must be invalidated before all other member variables.
352 // Therefore |weak_factory_| must be placed at the end. 352 // Therefore |weak_factory_| must be placed at the end.
353 base::WeakPtrFactory<MediaRouterUI> weak_factory_; 353 base::WeakPtrFactory<MediaRouterUI> weak_factory_;
354 354
355 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); 355 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI);
356 }; 356 };
357 357
358 } // namespace media_router 358 } // namespace media_router
359 359
360 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 360 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698