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

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

Issue 1680743006: [Media Router] Show user email in header if cloud sink is present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 4 years, 10 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"
11 #include "chrome/browser/media/router/issue.h" 11 #include "chrome/browser/media/router/issue.h"
12 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" 12 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
13 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h" 13 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h"
14 #include "components/signin/core/browser/account_info.h"
14 #include "content/public/browser/web_ui_message_handler.h" 15 #include "content/public/browser/web_ui_message_handler.h"
15 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
16 17
17 namespace base { 18 namespace base {
18 class DictionaryValue; 19 class DictionaryValue;
19 class ListValue; 20 class ListValue;
20 } // namespace base 21 } // namespace base
21 22
22 namespace content { 23 namespace content {
23 class WebUI; 24 class WebUI;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // |args| contains additional parameter that varies based on |type|. 83 // |args| contains additional parameter that varies based on |type|.
83 // Returns |true| if the action was successfully performed. 84 // Returns |true| if the action was successfully performed.
84 bool ActOnIssueType(const IssueAction::Type& type, 85 bool ActOnIssueType(const IssueAction::Type& type,
85 const base::DictionaryValue* args); 86 const base::DictionaryValue* args);
86 87
87 // May update the first run flow related properties in the WebUI. This is 88 // May update the first run flow related properties in the WebUI. This is
88 // called after the initial data is received to avoid unnecessary work when 89 // called after the initial data is received to avoid unnecessary work when
89 // initializing the WebUI. 90 // initializing the WebUI.
90 void MaybeUpdateFirstRunFlowData(); 91 void MaybeUpdateFirstRunFlowData();
91 92
93 // Retrieve the account info for email and domain of signed in users. This is
94 // used when updating sinks to determine if identity should be displayed.
95 // Marked virtual for tests.
96 virtual AccountInfo GetAccountInfo();
97
92 // Keeps track of whether a command to close the dialog has been issued. 98 // Keeps track of whether a command to close the dialog has been issued.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698