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

Side by Side Diff: chrome/browser/media/router/route_request_result.cc

Issue 2547703002: [Media Router] Handle multiple Presentation URLs when creating routes (Closed)
Patch Set: fix unittests 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 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/browser/media/router/route_request_result.h" 5 #include "chrome/browser/media/router/route_request_result.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chrome/browser/media/router/media_route.h" 8 #include "chrome/browser/media/router/media_route.h"
9 9
10 namespace media_router { 10 namespace media_router {
(...skipping 15 matching lines...) Expand all
26 new RouteRequestResult(nullptr, "", error, result_code)); 26 new RouteRequestResult(nullptr, "", error, result_code));
27 } 27 }
28 28
29 RouteRequestResult::RouteRequestResult(std::unique_ptr<MediaRoute> route, 29 RouteRequestResult::RouteRequestResult(std::unique_ptr<MediaRoute> route,
30 const std::string& presentation_id, 30 const std::string& presentation_id,
31 const std::string& error, 31 const std::string& error,
32 ResultCode result_code) 32 ResultCode result_code)
33 : route_(std::move(route)), 33 : route_(std::move(route)),
34 presentation_id_(presentation_id), 34 presentation_id_(presentation_id),
35 error_(error), 35 error_(error),
36 result_code_(result_code) {} 36 result_code_(result_code) {
37 presentation_url_ = route_ ? GURL(route_->media_source().id()) : GURL("");
mark a. foltz 2016/12/02 20:59:09 There is a TODO to have MediaSource contain a GURL
zhaobin 2016/12/02 22:50:57 Done.
38 }
37 39
38 RouteRequestResult::~RouteRequestResult() = default; 40 RouteRequestResult::~RouteRequestResult() = default;
39 41
40 } // namespace media_router 42 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698