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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_impl.h

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: resolve code review comments from Derek and Mark 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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Error handler callback for |binding_| and |media_route_provider_|. 287 // Error handler callback for |binding_| and |media_route_provider_|.
288 void OnConnectionError(); 288 void OnConnectionError();
289 289
290 // mojom::MediaRouter implementation. 290 // mojom::MediaRouter implementation.
291 void RegisterMediaRouteProvider( 291 void RegisterMediaRouteProvider(
292 mojom::MediaRouteProviderPtr media_route_provider_ptr, 292 mojom::MediaRouteProviderPtr media_route_provider_ptr,
293 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& 293 const mojom::MediaRouter::RegisterMediaRouteProviderCallback&
294 callback) override; 294 callback) override;
295 void OnIssue(const IssueInfo& issue) override; 295 void OnIssue(const IssueInfo& issue) override;
296 void OnSinksReceived(const std::string& media_source, 296 void OnSinksReceived(const std::string& media_source,
297 const std::vector<MediaSink>& sinks, 297 const std::vector<MediaSinkInternal>& internal_sinks,
298 const std::vector<url::Origin>& origins) override; 298 const std::vector<url::Origin>& origins) override;
299 void OnRoutesUpdated( 299 void OnRoutesUpdated(
300 const std::vector<MediaRoute>& routes, 300 const std::vector<MediaRoute>& routes,
301 const std::string& media_source, 301 const std::string& media_source,
302 const std::vector<std::string>& joinable_route_ids) override; 302 const std::vector<std::string>& joinable_route_ids) override;
303 void OnSinkAvailabilityUpdated( 303 void OnSinkAvailabilityUpdated(
304 mojom::MediaRouter::SinkAvailability availability) override; 304 mojom::MediaRouter::SinkAvailability availability) override;
305 void OnPresentationConnectionStateChanged( 305 void OnPresentationConnectionStateChanged(
306 const std::string& route_id, 306 const std::string& route_id,
307 content::PresentationConnectionState state) override; 307 content::PresentationConnectionState state) override;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 #endif 438 #endif
439 439
440 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 440 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
441 441
442 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 442 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
443 }; 443 };
444 444
445 } // namespace media_router 445 } // namespace media_router
446 446
447 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 447 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/mojo/media_router.typemap ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698