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

Side by Side Diff: chrome/browser/ui/webui/options/autofill_options_handler.h

Issue 301343002: mac: Clean up autofill integration with Address Book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill_cleanup2_base
Patch Set: test Created 6 years, 6 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
OLDNEW
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_AUTOFILL_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 28 matching lines...) Expand all
39 virtual void OnPersonalDataChanged() OVERRIDE; 39 virtual void OnPersonalDataChanged() OVERRIDE;
40 40
41 private: 41 private:
42 // Loads the strings for the address and credit card overlays. 42 // Loads the strings for the address and credit card overlays.
43 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); 43 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings);
44 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); 44 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings);
45 45
46 // Loads Autofill addresses and credit cards using the PersonalDataManager. 46 // Loads Autofill addresses and credit cards using the PersonalDataManager.
47 void LoadAutofillData(); 47 void LoadAutofillData();
48 48
49 #if defined(OS_MACOSX)
50 // The user wants to grant Chrome access to the user's Address Book.
Ilya Sherman 2014/05/30 23:39:48 Please also mention in this comment that we will i
erikchen 2014/06/02 21:21:17 Done.
51 void AccessAddressBook(const base::ListValue* args);
52 #endif
53
49 // Removes data from the PersonalDataManager. 54 // Removes data from the PersonalDataManager.
50 // |args| - A string, the GUID of the address or credit card to remove. 55 // |args| - A string, the GUID of the address or credit card to remove.
51 void RemoveData(const base::ListValue* args); 56 void RemoveData(const base::ListValue* args);
52 57
53 // Requests profile data for a specific address. Calls into WebUI with the 58 // Requests profile data for a specific address. Calls into WebUI with the
54 // loaded profile data to open the address editor. 59 // loaded profile data to open the address editor.
55 // |args| - A string, the GUID of the address to load. 60 // |args| - A string, the GUID of the address to load.
56 void LoadAddressEditor(const base::ListValue* args); 61 void LoadAddressEditor(const base::ListValue* args);
57 62
58 // Requests input form layout information for a specific country code. Calls 63 // Requests input form layout information for a specific country code. Calls
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // The personal data manager, used to load Autofill profiles and credit cards. 96 // The personal data manager, used to load Autofill profiles and credit cards.
92 // Unowned pointer, may not be NULL. 97 // Unowned pointer, may not be NULL.
93 autofill::PersonalDataManager* personal_data_; 98 autofill::PersonalDataManager* personal_data_;
94 99
95 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); 100 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
96 }; 101 };
97 102
98 } // namespace options 103 } // namespace options
99 104
100 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ 105 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698