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

Side by Side Diff: chrome/common/media_router/mojo/media_router_struct_traits.cc

Issue 2938173004: [Media Router] Add a supports_web_ui_controller attribute to MediaRoute (Closed)
Patch Set: Rebase Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/common/media_router/mojo/media_router_struct_traits.h" 5 #include "chrome/common/media_router/mojo/media_router_struct_traits.h"
6 6
7 #include "chrome/common/media_router/media_source.h" 7 #include "chrome/common/media_router/media_source.h"
8 #include "net/interfaces/ip_address_struct_traits.h" 8 #include "net/interfaces/ip_address_struct_traits.h"
9 #include "url/mojo/url_gurl_struct_traits.h" 9 #include "url/mojo/url_gurl_struct_traits.h"
10 10
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 out->set_description(description); 196 out->set_description(description);
197 197
198 base::Optional<std::string> custom_controller_path; 198 base::Optional<std::string> custom_controller_path;
199 if (!data.ReadCustomControllerPath(&custom_controller_path)) 199 if (!data.ReadCustomControllerPath(&custom_controller_path))
200 return false; 200 return false;
201 201
202 if (custom_controller_path) 202 if (custom_controller_path)
203 out->set_custom_controller_path(*custom_controller_path); 203 out->set_custom_controller_path(*custom_controller_path);
204 204
205 out->set_local(data.is_local()); 205 out->set_local(data.is_local());
206 out->set_supports_media_route_controller(
207 data.supports_media_route_controller());
206 out->set_for_display(data.for_display()); 208 out->set_for_display(data.for_display());
207 out->set_incognito(data.is_incognito()); 209 out->set_incognito(data.is_incognito());
208 out->set_offscreen_presentation(data.is_offscreen_presentation()); 210 out->set_offscreen_presentation(data.is_offscreen_presentation());
209 211
210 return true; 212 return true;
211 } 213 }
212 214
213 } // namespace mojo 215 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698