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

Side by Side Diff: components/app_modal/javascript_app_modal_dialog.h

Issue 1638013002: Add UMA histograms to track very brief or frequent tabs and JS dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_ 5 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_
6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_ 6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h"
13 #include "components/app_modal/app_modal_dialog.h" 14 #include "components/app_modal/app_modal_dialog.h"
14 #include "content/public/browser/javascript_dialog_manager.h" 15 #include "content/public/browser/javascript_dialog_manager.h"
15 16
16 namespace app_modal { 17 namespace app_modal {
17 18
18 // Extra data for JavaScript dialogs to add Chrome-only features. 19 // Extra data for JavaScript dialogs to add Chrome-only features.
19 class ChromeJavaScriptDialogExtraData { 20 class ChromeJavaScriptDialogExtraData {
20 public: 21 public:
21 ChromeJavaScriptDialogExtraData(); 22 ChromeJavaScriptDialogExtraData();
22 23
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool is_before_unload_dialog_; 96 bool is_before_unload_dialog_;
96 bool is_reload_; 97 bool is_reload_;
97 98
98 content::JavaScriptDialogManager::DialogClosedCallback callback_; 99 content::JavaScriptDialogManager::DialogClosedCallback callback_;
99 100
100 // Used only for testing. Specifies alternative prompt text that should be 101 // Used only for testing. Specifies alternative prompt text that should be
101 // used when notifying the delegate, if |use_override_prompt_text_| is true. 102 // used when notifying the delegate, if |use_override_prompt_text_| is true.
102 base::string16 override_prompt_text_; 103 base::string16 override_prompt_text_;
103 bool use_override_prompt_text_; 104 bool use_override_prompt_text_;
104 105
106 base::TimeTicks creation_time_;
107
105 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialog); 108 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialog);
106 }; 109 };
107 110
108 } // namespace app_modal 111 } // namespace app_modal
109 112
110 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_ 113 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_APP_MODAL_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698