| 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_AUTOFILL_AUTOFILL_XML_PARSER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/autofill/autofill_server_field_info.h" | 14 #include "chrome/browser/autofill/autofill_server_field_info.h" |
| 15 #include "chrome/browser/autofill/field_types.h" | 15 #include "chrome/browser/autofill/field_types.h" |
| 16 #include "chrome/browser/autofill/form_structure.h" | 16 #include "chrome/browser/autofill/form_structure.h" |
| 17 #include "chrome/common/autofill/web_element_descriptor.h" | 17 #include "components/autofill/common/web_element_descriptor.h" |
| 18 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" | 18 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" |
| 19 | 19 |
| 20 // The base class that contains common functionality between | 20 // The base class that contains common functionality between |
| 21 // AutofillQueryXmlParser and AutofillUploadXmlParser. | 21 // AutofillQueryXmlParser and AutofillUploadXmlParser. |
| 22 class AutofillXmlParser : public buzz::XmlParseHandler { | 22 class AutofillXmlParser : public buzz::XmlParseHandler { |
| 23 public: | 23 public: |
| 24 AutofillXmlParser(); | 24 AutofillXmlParser(); |
| 25 virtual ~AutofillXmlParser(); | 25 virtual ~AutofillXmlParser(); |
| 26 | 26 |
| 27 // Returns true if no parsing errors were encountered. | 27 // Returns true if no parsing errors were encountered. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // True if parsing succeeded. | 157 // True if parsing succeeded. |
| 158 bool succeeded_; | 158 bool succeeded_; |
| 159 | 159 |
| 160 double* positive_upload_rate_; | 160 double* positive_upload_rate_; |
| 161 double* negative_upload_rate_; | 161 double* negative_upload_rate_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(AutofillUploadXmlParser); | 163 DISALLOW_COPY_AND_ASSIGN(AutofillUploadXmlParser); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ | 166 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ |
| OLD | NEW |