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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 2818033: AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. (Closed)
Patch Set: Comment. Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include <string> 9 #include <string>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/scoped_vector.h" 12 #include "base/scoped_vector.h"
13 #include "chrome/browser/autofill/autofill_dialog.h" 13 #include "chrome/browser/autofill/autofill_dialog.h"
14 #include "chrome/browser/autofill/autofill_download.h" 14 #include "chrome/browser/autofill/autofill_download.h"
15 #include "chrome/browser/autofill/personal_data_manager.h" 15 #include "chrome/browser/autofill/personal_data_manager.h"
16 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 16 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
17 17
18 class AutoFillInfoBarDelegate;
19 class AutoFillProfile; 18 class AutoFillProfile;
20 class CreditCard; 19 class CreditCard;
21 class FormStructure; 20 class FormStructure;
22 class PrefService; 21 class PrefService;
23 class TabContents; 22 class TabContents;
24 23
25 namespace webkit_glue { 24 namespace webkit_glue {
26 struct FormData; 25 struct FormData;
27 class FormField; 26 class FormField;
28 } // namespace webkit_glue 27 } // namespace webkit_glue
(...skipping 21 matching lines...) Expand all
50 const std::vector<webkit_glue::FormData>& forms); 49 const std::vector<webkit_glue::FormData>& forms);
51 virtual bool GetAutoFillSuggestions(int query_id, 50 virtual bool GetAutoFillSuggestions(int query_id,
52 bool form_autofilled, 51 bool form_autofilled,
53 const webkit_glue::FormField& field); 52 const webkit_glue::FormField& field);
54 virtual bool FillAutoFillFormData(int query_id, 53 virtual bool FillAutoFillFormData(int query_id,
55 const webkit_glue::FormData& form, 54 const webkit_glue::FormData& form,
56 const string16& value, 55 const string16& value,
57 const string16& label); 56 const string16& label);
58 virtual void ShowAutoFillDialog(); 57 virtual void ShowAutoFillDialog();
59 58
60 // Called by the AutoFillInfoBarDelegate when the user closes the infobar.
61 virtual void OnInfoBarClosed();
62
63 // Called by the AutoFillInfoBarDelegate when the user accepts the infobar.
64 virtual void OnInfoBarAccepted();
65
66 // Called by the AutoFillInfoBarDelegate when the user cancels the infobar.
67 virtual void OnInfoBarCancelled();
68
69 // Resets the stored form data. 59 // Resets the stored form data.
70 virtual void Reset(); 60 virtual void Reset();
71 61
72 // AutoFillDownloadManager::Observer implementation: 62 // AutoFillDownloadManager::Observer implementation:
73 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml); 63 virtual void OnLoadedAutoFillHeuristics(const std::string& heuristic_xml);
74 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature); 64 virtual void OnUploadedAutoFillHeuristics(const std::string& form_signature);
75 virtual void OnHeuristicsRequestError( 65 virtual void OnHeuristicsRequestError(
76 const std::string& form_signature, 66 const std::string& form_signature,
77 AutoFillDownloadManager::AutoFillRequestType request_type, 67 AutoFillDownloadManager::AutoFillRequestType request_type,
78 int http_error); 68 int http_error);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 147
158 // Handles queries and uploads to AutoFill servers. 148 // Handles queries and uploads to AutoFill servers.
159 AutoFillDownloadManager download_manager_; 149 AutoFillDownloadManager download_manager_;
160 150
161 // Our copy of the form data. 151 // Our copy of the form data.
162 ScopedVector<FormStructure> form_structures_; 152 ScopedVector<FormStructure> form_structures_;
163 153
164 // The form data the user has submitted. 154 // The form data the user has submitted.
165 scoped_ptr<FormStructure> upload_form_structure_; 155 scoped_ptr<FormStructure> upload_form_structure_;
166 156
167 // The InfoBar that asks for permission to store form information.
168 scoped_ptr<AutoFillInfoBarDelegate> infobar_;
169
170 DISALLOW_COPY_AND_ASSIGN(AutoFillManager); 157 DISALLOW_COPY_AND_ASSIGN(AutoFillManager);
171 }; 158 };
172 159
173 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 160 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_infobar_delegate_unittest.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698