| OLD | NEW |
| 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_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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chrome/browser/autofill/field_types.h" | 11 #include "chrome/browser/autofill/field_types.h" |
| 12 #include "chrome/browser/autofill/form_structure.h" | 12 #include "chrome/browser/autofill/form_structure.h" |
| 13 #include "third_party/expat/files/lib/expat.h" | 13 #include "third_party/expat/files/lib/expat.h" |
| 14 #include "third_party/libjingle/files/talk/xmllite/xmlparser.h" | 14 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" |
| 15 | 15 |
| 16 // The base class that contains common functionality between | 16 // The base class that contains common functionality between |
| 17 // AutoFillQueryXmlParser and AutoFillUploadXmlParser. | 17 // AutoFillQueryXmlParser and AutoFillUploadXmlParser. |
| 18 class AutoFillXmlParser : public buzz::XmlParseHandler { | 18 class AutoFillXmlParser : public buzz::XmlParseHandler { |
| 19 public: | 19 public: |
| 20 AutoFillXmlParser(); | 20 AutoFillXmlParser(); |
| 21 | 21 |
| 22 // Returns true if no parsing errors were encountered. | 22 // Returns true if no parsing errors were encountered. |
| 23 bool succeeded() const { return succeeded_; } | 23 bool succeeded() const { return succeeded_; } |
| 24 | 24 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // True if parsing succeeded. | 122 // True if parsing succeeded. |
| 123 bool succeeded_; | 123 bool succeeded_; |
| 124 | 124 |
| 125 double* positive_upload_rate_; | 125 double* positive_upload_rate_; |
| 126 double* negative_upload_rate_; | 126 double* negative_upload_rate_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(AutoFillUploadXmlParser); | 128 DISALLOW_COPY_AND_ASSIGN(AutoFillUploadXmlParser); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ | 131 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_XML_PARSER_H_ |
| OLD | NEW |