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

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

Issue 1510603003: [Media Router] Add UMA metrics for Media Router Dialog WebUI performance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Handlers for JavaScript messages. 52 // Handlers for JavaScript messages.
53 // In all cases, |args| consists of a single DictionaryValue containing the 53 // In all cases, |args| consists of a single DictionaryValue containing the
54 // actual parameters. 54 // actual parameters.
55 // See media_router_ui_interface.js for documentation on parameters. 55 // See media_router_ui_interface.js for documentation on parameters.
56 void OnRequestInitialData(const base::ListValue* args); 56 void OnRequestInitialData(const base::ListValue* args);
57 void OnCreateRoute(const base::ListValue* args); 57 void OnCreateRoute(const base::ListValue* args);
58 void OnActOnIssue(const base::ListValue* args); 58 void OnActOnIssue(const base::ListValue* args);
59 void OnCloseRoute(const base::ListValue* args); 59 void OnCloseRoute(const base::ListValue* args);
60 void OnCloseDialog(const base::ListValue* args); 60 void OnCloseDialog(const base::ListValue* args);
61 void OnReportSinkCount(const base::ListValue* args); 61 void OnReportSinkCount(const base::ListValue* args);
62 void OnInitialDataReceived(const base::ListValue* args);
62 63
63 // Performs an action for an Issue of |type|. 64 // Performs an action for an Issue of |type|.
64 // |args| contains additional parameter that varies based on |type|. 65 // |args| contains additional parameter that varies based on |type|.
65 // Returns |true| if the action was successfully performed. 66 // Returns |true| if the action was successfully performed.
66 bool ActOnIssueType(const IssueAction::Type& type, 67 bool ActOnIssueType(const IssueAction::Type& type,
67 const base::DictionaryValue* args); 68 const base::DictionaryValue* args);
68 69
69 // Keeps track of whether a command to close the dialog has been issued. 70 // Keeps track of whether a command to close the dialog has been issued.
70 bool dialog_closing_; 71 bool dialog_closing_;
71 72
72 MediaRouterUI* media_router_ui_; 73 MediaRouterUI* media_router_ui_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); 75 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler);
75 }; 76 };
76 77
77 } // namespace media_router 78 } // namespace media_router
78 79
79 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ 80 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698