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

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void OnReportClickedSinkIndex(const base::ListValue* args); 72 void OnReportClickedSinkIndex(const base::ListValue* args);
73 void OnReportInitialAction(const base::ListValue* args); 73 void OnReportInitialAction(const base::ListValue* args);
74 void OnReportInitialState(const base::ListValue* args); 74 void OnReportInitialState(const base::ListValue* args);
75 void OnReportNavigateToView(const base::ListValue* args); 75 void OnReportNavigateToView(const base::ListValue* args);
76 void OnReportRouteCreation(const base::ListValue* args); 76 void OnReportRouteCreation(const base::ListValue* args);
77 void OnReportRouteCreationOutcome(const base::ListValue* args); 77 void OnReportRouteCreationOutcome(const base::ListValue* args);
78 void OnReportSelectedCastMode(const base::ListValue* args); 78 void OnReportSelectedCastMode(const base::ListValue* args);
79 void OnReportSinkCount(const base::ListValue* args); 79 void OnReportSinkCount(const base::ListValue* args);
80 void OnReportTimeToClickSink(const base::ListValue* args); 80 void OnReportTimeToClickSink(const base::ListValue* args);
81 void OnReportTimeToInitialActionClose(const base::ListValue* args); 81 void OnReportTimeToInitialActionClose(const base::ListValue* args);
82 void OnSearchProviders(const base::ListValue* args);
82 void OnInitialDataReceived(const base::ListValue* args); 83 void OnInitialDataReceived(const base::ListValue* args);
83 84
84 // Performs an action for an Issue of |type|. 85 // Performs an action for an Issue of |type|.
85 // |args| contains additional parameter that varies based on |type|. 86 // |args| contains additional parameter that varies based on |type|.
86 // Returns |true| if the action was successfully performed. 87 // Returns |true| if the action was successfully performed.
87 bool ActOnIssueType(const IssueAction::Type& type, 88 bool ActOnIssueType(const IssueAction::Type& type,
88 const base::DictionaryValue* args); 89 const base::DictionaryValue* args);
89 90
90 // May update the first run flow related properties in the WebUI. This is 91 // May update the first run flow related properties in the WebUI. This is
91 // called after the initial data is received to avoid unnecessary work when 92 // called after the initial data is received to avoid unnecessary work when
92 // initializing the WebUI. 93 // initializing the WebUI.
93 void MaybeUpdateFirstRunFlowData(); 94 void MaybeUpdateFirstRunFlowData();
94 95
95 // Retrieve the account info for email and domain of signed in users. This is 96 // Retrieve the account info for email and domain of signed in users. This is
96 // used when updating sinks to determine if identity should be displayed. 97 // used when updating sinks to determine if identity should be displayed.
97 // Marked virtual for tests. 98 // Marked virtual for tests.
98 virtual AccountInfo GetAccountInfo(); 99 virtual AccountInfo GetAccountInfo();
99 100
100 // Keeps track of whether a command to close the dialog has been issued. 101 // Keeps track of whether a command to close the dialog has been issued.
101 bool dialog_closing_; 102 bool dialog_closing_;
102 103
103 MediaRouterUI* media_router_ui_; 104 MediaRouterUI* media_router_ui_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); 106 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler);
106 }; 107 };
107 108
108 } // namespace media_router 109 } // namespace media_router
109 110
110 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ 111 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698