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

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

Issue 2867713002: Use OnceCallback on Mojo interfaces in //chrome/common/media_router (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 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // of few reasons: 318 // of few reasons:
319 // (1) The extension crashed and lost unpersisted changes. 319 // (1) The extension crashed and lost unpersisted changes.
320 // (2) The extension was updated; temporary data is cleared. 320 // (2) The extension was updated; temporary data is cleared.
321 // (3) The extension has an unforseen bug which causes temporary data to be 321 // (3) The extension has an unforseen bug which causes temporary data to be
322 // persisted incorrectly on suspension. 322 // persisted incorrectly on suspension.
323 void SyncStateToMediaRouteProvider(); 323 void SyncStateToMediaRouteProvider();
324 324
325 // mojom::MediaRouter implementation. 325 // mojom::MediaRouter implementation.
326 void RegisterMediaRouteProvider( 326 void RegisterMediaRouteProvider(
327 mojom::MediaRouteProviderPtr media_route_provider_ptr, 327 mojom::MediaRouteProviderPtr media_route_provider_ptr,
328 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& 328 mojom::MediaRouter::RegisterMediaRouteProviderCallback callback) override;
329 callback) override;
330 void OnIssue(const IssueInfo& issue) override; 329 void OnIssue(const IssueInfo& issue) override;
331 void OnSinksReceived(const std::string& media_source, 330 void OnSinksReceived(const std::string& media_source,
332 const std::vector<MediaSinkInternal>& internal_sinks, 331 const std::vector<MediaSinkInternal>& internal_sinks,
333 const std::vector<url::Origin>& origins) override; 332 const std::vector<url::Origin>& origins) override;
334 void OnRoutesUpdated( 333 void OnRoutesUpdated(
335 const std::vector<MediaRoute>& routes, 334 const std::vector<MediaRoute>& routes,
336 const std::string& media_source, 335 const std::string& media_source,
337 const std::vector<std::string>& joinable_route_ids) override; 336 const std::vector<std::string>& joinable_route_ids) override;
338 void OnSinkAvailabilityUpdated( 337 void OnSinkAvailabilityUpdated(
339 mojom::MediaRouter::SinkAvailability availability) override; 338 mojom::MediaRouter::SinkAvailability availability) override;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 #endif 491 #endif
493 492
494 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 493 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
495 494
496 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 495 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
497 }; 496 };
498 497
499 } // namespace media_router 498 } // namespace media_router
500 499
501 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 500 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698