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 "chrome/browser/ui/webui/help/version_updater.h" | 12 #include "chrome/browser/ui/webui/help/version_updater.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
16 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include "base/platform_file.h" | |
19 #include "chrome/browser/chromeos/version_loader.h" | 18 #include "chrome/browser/chromeos/version_loader.h" |
20 #endif // defined(OS_CHROMEOS) | 19 #endif // defined(OS_CHROMEOS) |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 class WebUIDataSource; | 22 class WebUIDataSource; |
24 } | 23 } |
25 | 24 |
26 // WebUI message handler for the help page. | 25 // WebUI message handler for the help page. |
27 class HelpHandler : public content::WebUIMessageHandler, | 26 class HelpHandler : public content::WebUIMessageHandler, |
28 public content::NotificationObserver { | 27 public content::NotificationObserver { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 base::CancelableTaskTracker tracker_; | 96 base::CancelableTaskTracker tracker_; |
98 #endif // defined(OS_CHROMEOS) | 97 #endif // defined(OS_CHROMEOS) |
99 | 98 |
100 // Used for callbacks. | 99 // Used for callbacks. |
101 base::WeakPtrFactory<HelpHandler> weak_factory_; | 100 base::WeakPtrFactory<HelpHandler> weak_factory_; |
102 | 101 |
103 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 102 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
104 }; | 103 }; |
105 | 104 |
106 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 105 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
OLD | NEW |