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_HELP_HELP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "chrome/browser/ui/webui/help/version_updater.h" | 13 #include "chrome/browser/ui/webui/help/version_updater.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 #include "content/public/browser/web_ui_message_handler.h" | 16 #include "content/public/browser/web_ui_message_handler.h" |
17 | 17 |
18 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
19 #include "base/task/cancelable_task_tracker.h" | 19 #include "base/task/cancelable_task_tracker.h" |
20 #include "chrome/browser/chromeos/version_loader.h" | 20 #include "chromeos/system/version_loader.h" |
21 #endif // defined(OS_CHROMEOS) | 21 #endif // defined(OS_CHROMEOS) |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class DictionaryValue; | 24 class DictionaryValue; |
25 class ListValue; | 25 class ListValue; |
26 } | 26 } |
27 | 27 |
28 // WebUI message handler for the help page. | 28 // WebUI message handler for the help page. |
29 class HelpHandler : public content::WebUIMessageHandler, | 29 class HelpHandler : public content::WebUIMessageHandler, |
30 public content::NotificationObserver { | 30 public content::NotificationObserver { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Used to observe notifications. | 101 // Used to observe notifications. |
102 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
103 | 103 |
104 // Used for callbacks. | 104 // Used for callbacks. |
105 base::WeakPtrFactory<HelpHandler> weak_factory_; | 105 base::WeakPtrFactory<HelpHandler> weak_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 107 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 110 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
OLD | NEW |