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

Side by Side Diff: chrome/browser/ui/webui/options/options_ui.h

Issue 7314020: Update UMA user actions parsing, primarily to include WebUI metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update regex Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OPTIONS_OPTIONS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 virtual void Uninitialize() {} 41 virtual void Uninitialize() {}
42 42
43 // WebUIMessageHandler implementation. 43 // WebUIMessageHandler implementation.
44 virtual void RegisterMessages() OVERRIDE {} 44 virtual void RegisterMessages() OVERRIDE {}
45 45
46 // NotificationObserver implementation. 46 // NotificationObserver implementation.
47 virtual void Observe(int type, 47 virtual void Observe(int type,
48 const NotificationSource& source, 48 const NotificationSource& source,
49 const NotificationDetails& details) OVERRIDE {} 49 const NotificationDetails& details) OVERRIDE {}
50 50
51 void UserMetricsRecordAction(const UserMetricsAction& action);
52
53 protected: 51 protected:
54 struct OptionsStringResource { 52 struct OptionsStringResource {
55 // The name of the resource in templateData. 53 // The name of the resource in templateData.
56 const char* name; 54 const char* name;
57 // The .grd ID for the resource (IDS_*). 55 // The .grd ID for the resource (IDS_*).
58 int id; 56 int id;
59 }; 57 };
60 // A helper for simplifying the process of registering strings in WebUI. 58 // A helper for simplifying the process of registering strings in WebUI.
61 static void RegisterStrings(base::DictionaryValue* localized_strings, 59 static void RegisterStrings(base::DictionaryValue* localized_strings,
62 const OptionsStringResource* resources, 60 const OptionsStringResource* resources,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. 98 // Adds OptionsPageUiHandler to the handlers list if handler is enabled.
101 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings, 99 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings,
102 OptionsPageUIHandler* handler); 100 OptionsPageUIHandler* handler);
103 101
104 bool initialized_handlers_; 102 bool initialized_handlers_;
105 103
106 DISALLOW_COPY_AND_ASSIGN(OptionsUI); 104 DISALLOW_COPY_AND_ASSIGN(OptionsUI);
107 }; 105 };
108 106
109 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ 107 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/core_options_handler.cc ('k') | chrome/browser/ui/webui/options/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698