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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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_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> 9 #include <string>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/cancelable_request.h" 12 #include "chrome/browser/cancelable_request.h"
13 #include "chrome/browser/extensions/extension_install_ui.h" 13 #include "chrome/browser/extensions/extension_install_ui.h"
14 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 14 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
15 #include "chrome/browser/favicon/favicon_service.h" 15 #include "chrome/browser/favicon/favicon_service.h"
16 #include "chrome/browser/prefs/pref_change_registrar.h" 16 #include "chrome/browser/prefs/pref_change_registrar.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
19 #include "chrome/common/string_ordinal.h" 19 #include "chrome/common/string_ordinal.h"
20 #include "content/browser/webui/web_ui.h"
21 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/web_ui_message_handler.h"
23 23
24 class AppNotification; 24 class AppNotification;
25 class ExtensionService; 25 class ExtensionService;
26 class PrefChangeRegistrar; 26 class PrefChangeRegistrar;
27 class Profile; 27 class Profile;
28 28
29 // The handler for Javascript messages related to the "apps" view. 29 // The handler for Javascript messages related to the "apps" view.
30 class AppLauncherHandler : public WebUIMessageHandler, 30 class AppLauncherHandler : public content::WebUIMessageHandler,
31 public ExtensionUninstallDialog::Delegate, 31 public ExtensionUninstallDialog::Delegate,
32 public ExtensionInstallUI::Delegate, 32 public ExtensionInstallUI::Delegate,
33 public content::NotificationObserver { 33 public content::NotificationObserver {
34 public: 34 public:
35 explicit AppLauncherHandler(ExtensionService* extension_service); 35 explicit AppLauncherHandler(ExtensionService* extension_service);
36 virtual ~AppLauncherHandler(); 36 virtual ~AppLauncherHandler();
37 37
38 // Whether the app should be excluded from the "apps" list because 38 // Whether the app should be excluded from the "apps" list because
39 // it is special (such as the Web Store app). 39 // it is special (such as the Web Store app).
40 static bool IsAppExcludedFromList(const Extension* extension); 40 static bool IsAppExcludedFromList(const Extension* extension);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // when the app is added to the page (via getAppsCallback or appAdded). 202 // when the app is added to the page (via getAppsCallback or appAdded).
203 std::string highlight_app_id_; 203 std::string highlight_app_id_;
204 204
205 // Hold state for favicon requests. 205 // Hold state for favicon requests.
206 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; 206 CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 208 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
209 }; 209 };
210 210
211 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 211 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui_browsertest.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