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

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

Issue 2731043002: [Media Router] Add a presentation id to MediaRoute mapping in the MR (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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 const MediaRoute::Id& route_id, 27 const MediaRoute::Id& route_id,
28 const content::PresentationConnectionStateChangedCallback& callback) 28 const content::PresentationConnectionStateChangedCallback& callback)
29 override; 29 override;
30 30
31 // Called when the incognito profile for this instance is being shut down. 31 // Called when the incognito profile for this instance is being shut down.
32 // This will terminate all incognito media routes. 32 // This will terminate all incognito media routes.
33 void OnIncognitoProfileShutdown() override; 33 void OnIncognitoProfileShutdown() override;
34 34
35 std::vector<MediaRoute> GetCurrentRoutes() const override; 35 std::vector<MediaRoute> GetCurrentRoutes() const override;
36 36
37 void RegisterPresentationRoute(const std::string& presentation_id,
38 const MediaRoute& route) override;
39
40 void UnregisterPresentationRoute(const std::string& presentation_id) override;
41
42 const MediaRoute* GetPresentationRoute(
43 const std::string& presentation_id) const override;
44
37 protected: 45 protected:
38 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, 46 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest,
39 PresentationConnectionStateChangedCallback); 47 PresentationConnectionStateChangedCallback);
40 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, 48 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest,
41 PresentationConnectionStateChangedCallbackRemoved); 49 PresentationConnectionStateChangedCallbackRemoved);
42 FRIEND_TEST_ALL_PREFIXES(MediaRouterBaseTest, CreatePresentationIds); 50 FRIEND_TEST_ALL_PREFIXES(MediaRouterBaseTest, CreatePresentationIds);
43 FRIEND_TEST_ALL_PREFIXES(MediaRouterBaseTest, NotifyCallbacks); 51 FRIEND_TEST_ALL_PREFIXES(MediaRouterBaseTest, NotifyCallbacks);
44 52
45 MediaRouterBase(); 53 MediaRouterBase();
46 54
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 95
88 std::unique_ptr<InternalMediaRoutesObserver> internal_routes_observer_; 96 std::unique_ptr<InternalMediaRoutesObserver> internal_routes_observer_;
89 bool initialized_; 97 bool initialized_;
90 98
91 DISALLOW_COPY_AND_ASSIGN(MediaRouterBase); 99 DISALLOW_COPY_AND_ASSIGN(MediaRouterBase);
92 }; 100 };
93 101
94 } // namespace media_router 102 } // namespace media_router
95 103
96 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ 104 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698