Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_ H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_ H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_ H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_ H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 | 25 |
| 26 namespace media_router { | 26 namespace media_router { |
| 27 | 27 |
| 28 class Issue; | 28 class Issue; |
| 29 class MediaRoute; | 29 class MediaRoute; |
| 30 class MediaRouterUI; | 30 class MediaRouterUI; |
| 31 | 31 |
| 32 // The handler for Javascript messages related to the media router dialog. | 32 // The handler for Javascript messages related to the media router dialog. |
| 33 class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler { | 33 class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler { |
| 34 public: | 34 public: |
| 35 enum IdentityVisibility { | |
|
imcheng
2016/02/17 00:51:08
I think this should be removed since you are not p
amp
2016/02/17 02:11:37
Done.
| |
| 36 HIDDEN, | |
| 37 SHOW_EMAIL, | |
| 38 SHOW_DOMAIN | |
| 39 }; | |
| 40 | |
| 35 explicit MediaRouterWebUIMessageHandler(MediaRouterUI* media_router_ui); | 41 explicit MediaRouterWebUIMessageHandler(MediaRouterUI* media_router_ui); |
| 36 ~MediaRouterWebUIMessageHandler() override; | 42 ~MediaRouterWebUIMessageHandler() override; |
| 37 | 43 |
| 38 // Methods to update the status displayed by the dialog. | 44 // Methods to update the status displayed by the dialog. |
| 39 void UpdateSinks(const std::vector<MediaSinkWithCastModes>& sinks); | 45 void UpdateSinks(const std::vector<MediaSinkWithCastModes>& sinks); |
| 40 void UpdateRoutes(const std::vector<MediaRoute>& routes, | 46 void UpdateRoutes(const std::vector<MediaRoute>& routes, |
| 41 const std::vector<MediaRoute::Id>& joinable_route_ids); | 47 const std::vector<MediaRoute::Id>& joinable_route_ids); |
| 42 void UpdateCastModes(const CastModeSet& cast_modes, | 48 void UpdateCastModes(const CastModeSet& cast_modes, |
| 43 const std::string& source_host); | 49 const std::string& source_host); |
| 44 void OnCreateRouteResponseReceived(const MediaSink::Id& sink_id, | 50 void OnCreateRouteResponseReceived(const MediaSink::Id& sink_id, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 bool dialog_closing_; | 99 bool dialog_closing_; |
| 94 | 100 |
| 95 MediaRouterUI* media_router_ui_; | 101 MediaRouterUI* media_router_ui_; |
| 96 | 102 |
| 97 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); | 103 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); |
| 98 }; | 104 }; |
| 99 | 105 |
| 100 } // namespace media_router | 106 } // namespace media_router |
| 101 | 107 |
| 102 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ | 108 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ |
| OLD | NEW |