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

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

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 interfaces::MediaRouter::PresentationConnectionCloseReason reason, 307 interfaces::MediaRouter::PresentationConnectionCloseReason reason,
308 const mojo::String& message) override; 308 const mojo::String& message) override;
309 309
310 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() 310 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute()
311 // into a local callback. 311 // into a local callback.
312 void RouteResponseReceived( 312 void RouteResponseReceived(
313 const std::string& presentation_id, 313 const std::string& presentation_id,
314 bool off_the_record, 314 bool off_the_record,
315 const std::vector<MediaRouteResponseCallback>& callbacks, 315 const std::vector<MediaRouteResponseCallback>& callbacks,
316 interfaces::MediaRoutePtr media_route, 316 interfaces::MediaRoutePtr media_route,
317 const mojo::String& error_text, 317 mojo::String error_text,
318 interfaces::RouteRequestResultCode result_code); 318 interfaces::RouteRequestResultCode result_code);
319 319
320 // Callback invoked by |event_page_tracker_| after an attempt to wake the 320 // Callback invoked by |event_page_tracker_| after an attempt to wake the
321 // component extension. If |success| is false, the pending request queue is 321 // component extension. If |success| is false, the pending request queue is
322 // drained. 322 // drained.
323 void EventPageWakeComplete(bool success); 323 void EventPageWakeComplete(bool success);
324 324
325 // Removes all requests from the pending requests queue. Called when there is 325 // Removes all requests from the pending requests queue. Called when there is
326 // a permanent error connecting to component extension. 326 // a permanent error connecting to component extension.
327 void DrainRequestQueue(); 327 void DrainRequestQueue();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 #endif 434 #endif
435 435
436 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 436 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
437 437
438 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 438 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
439 }; 439 };
440 440
441 } // namespace media_router 441 } // namespace media_router
442 442
443 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 443 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc ('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