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

Side by Side Diff: chrome/browser/ui/webui/options2/autofill_options_handler2.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright bumps Created 8 years, 9 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) 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_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_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 "chrome/browser/autofill/personal_data_manager_observer.h" 11 #include "chrome/browser/autofill/personal_data_manager_observer.h"
(...skipping 10 matching lines...) Expand all
22 22
23 class AutofillOptionsHandler : public OptionsPageUIHandler, 23 class AutofillOptionsHandler : public OptionsPageUIHandler,
24 public PersonalDataManagerObserver { 24 public PersonalDataManagerObserver {
25 public: 25 public:
26 AutofillOptionsHandler(); 26 AutofillOptionsHandler();
27 virtual ~AutofillOptionsHandler(); 27 virtual ~AutofillOptionsHandler();
28 28
29 // OptionsPageUIHandler implementation. 29 // OptionsPageUIHandler implementation.
30 virtual void GetLocalizedValues( 30 virtual void GetLocalizedValues(
31 base::DictionaryValue* localized_strings) OVERRIDE; 31 base::DictionaryValue* localized_strings) OVERRIDE;
32 virtual void Initialize() OVERRIDE; 32 virtual void InitializeHandler() OVERRIDE;
33 virtual void InitializePage() OVERRIDE;
33 virtual void RegisterMessages() OVERRIDE; 34 virtual void RegisterMessages() OVERRIDE;
34 35
35 // PersonalDataManagerObserver implementation. 36 // PersonalDataManagerObserver implementation.
36 virtual void OnPersonalDataChanged() OVERRIDE; 37 virtual void OnPersonalDataChanged() OVERRIDE;
37 38
38 private: 39 private:
39 // Loads the strings for the address and credit card overlays. 40 // Loads the strings for the address and credit card overlays.
40 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); 41 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings);
41 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); 42 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings);
42 43
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // The personal data manager, used to load Autofill profiles and credit cards. 85 // The personal data manager, used to load Autofill profiles and credit cards.
85 // Unowned pointer, may not be NULL. 86 // Unowned pointer, may not be NULL.
86 PersonalDataManager* personal_data_; 87 PersonalDataManager* personal_data_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); 89 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
89 }; 90 };
90 91
91 } // namespace options2 92 } // namespace options2
92 93
93 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 94 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698