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

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

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Address Derek and Mark's comments Created 4 years, 3 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool is_active = false; 192 bool is_active = false;
193 base::ObserverList<MediaRoutesObserver> observers; 193 base::ObserverList<MediaRoutesObserver> observers;
194 194
195 private: 195 private:
196 DISALLOW_COPY_AND_ASSIGN(MediaRoutesQuery); 196 DISALLOW_COPY_AND_ASSIGN(MediaRoutesQuery);
197 }; 197 };
198 198
199 // Standard constructor, used by 199 // Standard constructor, used by
200 // MediaRouterMojoImplFactory::GetApiForBrowserContext. 200 // MediaRouterMojoImplFactory::GetApiForBrowserContext.
201 explicit MediaRouterMojoImpl( 201 explicit MediaRouterMojoImpl(
202 content::BrowserContext* context,
202 extensions::EventPageTracker* event_page_tracker); 203 extensions::EventPageTracker* event_page_tracker);
203 204
204 // Binds |this| to a Mojo interface request, so that clients can acquire a 205 // Binds |this| to a Mojo interface request, so that clients can acquire a
205 // handle to a MediaRouterMojoImpl instance via the Mojo service connector. 206 // handle to a MediaRouterMojoImpl instance via the Mojo service connector.
206 // Stores the ID of |extension| in |media_route_provider_extension_id_|. 207 // Stores the ID of |extension| in |media_route_provider_extension_id_|.
207 void BindToMojoRequest( 208 void BindToMojoRequest(
208 mojo::InterfaceRequest<mojom::MediaRouter> request, 209 mojo::InterfaceRequest<mojom::MediaRouter> request,
209 const extensions::Extension& extension); 210 const extensions::Extension& extension);
210 211
211 // Enqueues a closure for later execution by ExecutePendingRequests(). 212 // Enqueues a closure for later execution by ExecutePendingRequests().
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 #endif 430 #endif
430 431
431 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 432 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
432 433
433 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 434 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
434 }; 435 };
435 436
436 } // namespace media_router 437 } // namespace media_router
437 438
438 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 439 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698