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

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

Issue 8537007: Cleanup: Remove unneeded forward declarations from chrome/browser/ui/webui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/webui/keyboard_ui.h ('k') | chrome/browser/ui/webui/ntp/bookmarks_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/extension_install_ui.h" 12 #include "chrome/browser/extensions/extension_install_ui.h"
11 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 13 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
12 #include "chrome/browser/favicon/favicon_service.h" 14 #include "chrome/browser/favicon/favicon_service.h"
13 #include "chrome/browser/prefs/pref_change_registrar.h" 15 #include "chrome/browser/prefs/pref_change_registrar.h"
14 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
16 #include "content/browser/cancelable_request.h" 18 #include "content/browser/cancelable_request.h"
17 #include "content/browser/webui/web_ui.h" 19 #include "content/browser/webui/web_ui.h"
18 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
20 22
21 class AppNotification; 23 class AppNotification;
22 class ExtensionPrefs;
23 class ExtensionService; 24 class ExtensionService;
24 class PrefChangeRegistrar; 25 class PrefChangeRegistrar;
25 class PrefsService;
26 class Profile; 26 class Profile;
27 struct WebApplicationInfo;
28
29 namespace gfx {
30 class Rect;
31 }
32 27
33 // The handler for Javascript messages related to the "apps" view. 28 // The handler for Javascript messages related to the "apps" view.
34 class AppLauncherHandler : public WebUIMessageHandler, 29 class AppLauncherHandler : public WebUIMessageHandler,
35 public ExtensionUninstallDialog::Delegate, 30 public ExtensionUninstallDialog::Delegate,
36 public ExtensionInstallUI::Delegate, 31 public ExtensionInstallUI::Delegate,
37 public content::NotificationObserver { 32 public content::NotificationObserver {
38 public: 33 public:
39 explicit AppLauncherHandler(ExtensionService* extension_service); 34 explicit AppLauncherHandler(ExtensionService* extension_service);
40 virtual ~AppLauncherHandler(); 35 virtual ~AppLauncherHandler();
41 36
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // when the app is added to the page (via getAppsCallback or appAdded). 203 // when the app is added to the page (via getAppsCallback or appAdded).
209 std::string highlight_app_id_; 204 std::string highlight_app_id_;
210 205
211 // Hold state for favicon requests. 206 // Hold state for favicon requests.
212 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; 207 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_;
213 208
214 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 209 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
215 }; 210 };
216 211
217 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 212 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/keyboard_ui.h ('k') | chrome/browser/ui/webui/ntp/bookmarks_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698