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

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

Issue 2724513002: (Not for review) Dummy C++ side Custom Controls implementation (Closed)
Patch Set: . Created 3 years, 9 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 #include "chrome/browser/media/router/media_router_base.h" 5 #include "chrome/browser/media/router/media_router_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 void MediaRouterBase::OnIncognitoProfileShutdown() { 70 void MediaRouterBase::OnIncognitoProfileShutdown() {
71 for (const auto& route_id : internal_routes_observer_->incognito_route_ids) 71 for (const auto& route_id : internal_routes_observer_->incognito_route_ids)
72 TerminateRoute(route_id); 72 TerminateRoute(route_id);
73 } 73 }
74 74
75 std::vector<MediaRoute> MediaRouterBase::GetCurrentRoutes() const { 75 std::vector<MediaRoute> MediaRouterBase::GetCurrentRoutes() const {
76 return internal_routes_observer_->current_routes; 76 return internal_routes_observer_->current_routes;
77 } 77 }
78 78
79 MediaRouteController* MediaRouterBase::GetControllerForRoute(
80 const MediaRoute::Id& route_id) {
81 return nullptr;
82 }
83
79 MediaRouterBase::MediaRouterBase() : initialized_(false) {} 84 MediaRouterBase::MediaRouterBase() : initialized_(false) {}
80 85
81 // static 86 // static
82 std::string MediaRouterBase::CreatePresentationId() { 87 std::string MediaRouterBase::CreatePresentationId() {
83 return "mr_" + base::GenerateGUID(); 88 return "mr_" + base::GenerateGUID();
84 } 89 }
85 90
86 void MediaRouterBase::NotifyPresentationConnectionStateChange( 91 void MediaRouterBase::NotifyPresentationConnectionStateChange(
87 const MediaRoute::Id& route_id, 92 const MediaRoute::Id& route_id,
88 content::PresentationConnectionState state) { 93 content::PresentationConnectionState state) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 137 }
133 } 138 }
134 139
135 void MediaRouterBase::Shutdown() { 140 void MediaRouterBase::Shutdown() {
136 // The observer calls virtual methods on MediaRouter; it must be destroyed 141 // The observer calls virtual methods on MediaRouter; it must be destroyed
137 // outside of the dtor 142 // outside of the dtor
138 internal_routes_observer_.reset(); 143 internal_routes_observer_.reset();
139 } 144 }
140 145
141 } // namespace media_router 146 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router_base.h ('k') | chrome/browser/media/router/media_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698