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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Chrome browser options page UI handler. | 24 // Chrome browser options page UI handler. |
25 class BrowserOptionsHandler : public OptionsPageUIHandler, | 25 class BrowserOptionsHandler : public OptionsPageUIHandler, |
26 public AutocompleteControllerDelegate, | 26 public AutocompleteControllerDelegate, |
27 public ShellIntegration::DefaultWebClientObserver, | 27 public ShellIntegration::DefaultWebClientObserver, |
28 public TemplateURLServiceObserver, | 28 public TemplateURLServiceObserver, |
29 public ui::TableModelObserver { | 29 public ui::TableModelObserver { |
30 public: | 30 public: |
31 BrowserOptionsHandler(); | 31 BrowserOptionsHandler(); |
32 virtual ~BrowserOptionsHandler(); | 32 virtual ~BrowserOptionsHandler(); |
33 | 33 |
34 virtual void Initialize() OVERRIDE; | 34 virtual void InitializeHandler() OVERRIDE; |
35 | 35 |
36 // OptionsPageUIHandler implementation. | 36 // OptionsPageUIHandler implementation. |
37 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; | 37 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; |
38 virtual void RegisterMessages() OVERRIDE; | 38 virtual void RegisterMessages() OVERRIDE; |
39 | 39 |
40 // AutocompleteControllerDelegate implementation. | 40 // AutocompleteControllerDelegate implementation. |
41 virtual void OnResultChanged(bool default_match_changed) OVERRIDE; | 41 virtual void OnResultChanged(bool default_match_changed) OVERRIDE; |
42 | 42 |
43 // ShellIntegration::DefaultWebClientObserver implementation. | 43 // ShellIntegration::DefaultWebClientObserver implementation. |
44 virtual void SetDefaultWebClientUIState( | 44 virtual void SetDefaultWebClientUIState( |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 // Used to get |weak_ptr_| to self for use on the File thread. | 151 // Used to get |weak_ptr_| to self for use on the File thread. |
152 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_file_; | 152 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_file_; |
153 // Used to post update tasks to the UI thread. | 153 // Used to post update tasks to the UI thread. |
154 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_ui_; | 154 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_ui_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 156 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
157 }; | 157 }; |
158 | 158 |
159 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 159 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |