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

Unified Diff: chrome/browser/webdata/autofill_util.h

Issue 6677124: Move migration code out of WebDatabase and into table-specific classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/webdata/autofill_util.h
diff --git a/chrome/browser/webdata/autofill_util.h b/chrome/browser/webdata/autofill_util.h
deleted file mode 100644
index 8436001f39c5816a8b7fa11a661c8cb2a9695b29..0000000000000000000000000000000000000000
--- a/chrome/browser/webdata/autofill_util.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_UTIL_H_
-#define CHROME_BROWSER_WEBDATA_AUTOFILL_UTIL_H_
-#pragma once
-
-#include "app/sql/statement.h"
-#include "base/string16.h"
-
-class AutofillProfile;
-class CreditCard;
-
-// Constants for the |autofill_profile_phones| |type| column.
-enum AutofillPhoneType {
- kAutofillPhoneNumber = 0,
- kAutofillFaxNumber = 1
-};
-
-namespace autofill_util {
-
-// TODO(jhawkins): This is a temporary stop-gap measure designed to prevent
-// a malicious site from DOS'ing the browser with extremely large profile
-// data. The correct solution is to parse this data asynchronously.
-// See http://crbug.com/49332.
-string16 LimitDataSize(const string16& data);
-
-void BindAutofillProfileToStatement(const AutofillProfile& profile,
- sql::Statement* s);
-
-AutofillProfile* AutofillProfileFromStatement(const sql::Statement& s);
-
-void BindCreditCardToStatement(const CreditCard& credit_card,
- sql::Statement* s);
-
-CreditCard* CreditCardFromStatement(const sql::Statement& s);
-
-bool AddAutofillProfileNamesToProfile(sql::Connection* db,
- AutofillProfile* profile);
-
-bool AddAutofillProfileEmailsToProfile(sql::Connection* db,
- AutofillProfile* profile);
-
-bool AddAutofillProfilePhonesToProfile(sql::Connection* db,
- AutofillProfile* profile);
-
-bool AddAutofillProfileFaxesToProfile(sql::Connection* db,
- AutofillProfile* profile);
-
-bool AddAutofillProfileNames(const AutofillProfile& profile,
- sql::Connection* db);
-
-bool AddAutofillProfileEmails(const AutofillProfile& profile,
- sql::Connection* db);
-
-bool AddAutofillProfilePhones(const AutofillProfile& profile,
- AutofillPhoneType phone_type,
- sql::Connection* db);
-
-bool AddAutofillProfilePieces(const AutofillProfile& profile,
- sql::Connection* db);
-
-bool RemoveAutofillProfilePieces(const std::string& guid, sql::Connection* db);
-
-} // namespace autofill_util
-
-#endif // CHROME_BROWSER_WEBDATA_AUTOFILL_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698