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

Side by Side Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 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) 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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // action for UMA. 95 // action for UMA.
96 void HandleRecordAppLaunchByURL(const base::ListValue* args); 96 void HandleRecordAppLaunchByURL(const base::ListValue* args);
97 97
98 // Callback for "closeNotification" message. 98 // Callback for "closeNotification" message.
99 void HandleNotificationClose(const base::ListValue* args); 99 void HandleNotificationClose(const base::ListValue* args);
100 100
101 // Callback for "setNotificationsDisabled" message. 101 // Callback for "setNotificationsDisabled" message.
102 void HandleSetNotificationsDisabled(const base::ListValue* args); 102 void HandleSetNotificationsDisabled(const base::ListValue* args);
103 103
104 // Register app launcher preferences. 104 // Register app launcher preferences.
105 static void RegisterUserPrefs(PrefService* pref_service); 105 static void RegisterUserPrefs(PrefServiceBase* pref_service);
106 106
107 // Records the given type of app launch for UMA. 107 // Records the given type of app launch for UMA.
108 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket); 108 static void RecordAppLaunchType(extension_misc::AppLaunchBucket bucket);
109 109
110 private: 110 private:
111 struct AppInstallInfo { 111 struct AppInstallInfo {
112 AppInstallInfo(); 112 AppInstallInfo();
113 ~AppInstallInfo(); 113 ~AppInstallInfo();
114 114
115 bool is_bookmark_app; 115 bool is_bookmark_app;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // when the app is added to the page (via getAppsCallback or appAdded). 199 // when the app is added to the page (via getAppsCallback or appAdded).
200 std::string highlight_app_id_; 200 std::string highlight_app_id_;
201 201
202 // Hold state for favicon requests. 202 // Hold state for favicon requests.
203 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; 203 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_;
204 204
205 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 205 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
206 }; 206 };
207 207
208 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 208 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698