| OLD | NEW |
| 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 CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a | 109 // Callback for the "recordAppLaunchByURL" message. Takes an escaped URL and a |
| 110 // launch source (integer), and if the URL represents an app, records the | 110 // launch source (integer), and if the URL represents an app, records the |
| 111 // action for UMA. | 111 // action for UMA. |
| 112 void HandleRecordAppLaunchByUrl(const base::ListValue* args); | 112 void HandleRecordAppLaunchByUrl(const base::ListValue* args); |
| 113 | 113 |
| 114 // Other registered message callbacks with unused |args|. | 114 // Other registered message callbacks with unused |args|. |
| 115 void StopShowingAppLauncherPromo(const base::ListValue* args); | 115 void StopShowingAppLauncherPromo(const base::ListValue* args); |
| 116 void OnLearnMore(const base::ListValue* args); | 116 void OnLearnMore(const base::ListValue* args); |
| 117 | 117 |
| 118 // Register app launcher preferences. | 118 // Register app launcher preferences. |
| 119 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 119 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 120 | 120 |
| 121 // Records the given type of app launch for UMA. | 121 // Records the given type of app launch for UMA. |
| 122 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket, | 122 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket, |
| 123 extensions::Manifest::Type app_type); | 123 extensions::Manifest::Type app_type); |
| 124 | 124 |
| 125 // Records an app launch from the search view of the app list. | 125 // Records an app launch from the search view of the app list. |
| 126 static void RecordAppListSearchLaunch(const extensions::Extension* extension); | 126 static void RecordAppListSearchLaunch(const extensions::Extension* extension); |
| 127 | 127 |
| 128 // Records an app launch from the main view of the app list. | 128 // Records an app launch from the main view of the app list. |
| 129 static void RecordAppListMainLaunch(const extensions::Extension* extension); | 129 static void RecordAppListMainLaunch(const extensions::Extension* extension); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // when the app is added to the page (via getAppsCallback or appAdded). | 224 // when the app is added to the page (via getAppsCallback or appAdded). |
| 225 std::string highlight_app_id_; | 225 std::string highlight_app_id_; |
| 226 | 226 |
| 227 // Used for favicon loading tasks. | 227 // Used for favicon loading tasks. |
| 228 CancelableTaskTracker cancelable_task_tracker_; | 228 CancelableTaskTracker cancelable_task_tracker_; |
| 229 | 229 |
| 230 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); | 230 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ | 233 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ |
| OLD | NEW |