| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FORM_STRUCTURE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Used for iterating over the fields. | 95 // Used for iterating over the fields. |
| 96 std::vector<AutoFillField*>::const_iterator begin() const { | 96 std::vector<AutoFillField*>::const_iterator begin() const { |
| 97 return fields_.begin(); | 97 return fields_.begin(); |
| 98 } | 98 } |
| 99 std::vector<AutoFillField*>::const_iterator end() const { | 99 std::vector<AutoFillField*>::const_iterator end() const { |
| 100 return fields_.end(); | 100 return fields_.end(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 const GURL& source_url() const { return source_url_; } | 103 const GURL& source_url() const { return source_url_; } |
| 104 | 104 |
| 105 virtual std::string server_experiment_id() const { | 105 virtual std::string server_experiment_id() const; |
| 106 return server_experiment_id_; | |
| 107 } | |
| 108 | 106 |
| 109 bool operator==(const webkit_glue::FormData& form) const; | 107 bool operator==(const webkit_glue::FormData& form) const; |
| 110 bool operator!=(const webkit_glue::FormData& form) const; | 108 bool operator!=(const webkit_glue::FormData& form) const; |
| 111 | 109 |
| 112 protected: | 110 protected: |
| 113 // For tests. | 111 // For tests. |
| 114 ScopedVector<AutoFillField>* fields() { return &fields_; } | 112 ScopedVector<AutoFillField>* fields() { return &fields_; } |
| 115 | 113 |
| 116 private: | 114 private: |
| 117 friend class FormStructureTest; | 115 friend class FormStructureTest; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // form. | 166 // form. |
| 169 std::string server_experiment_id_; | 167 std::string server_experiment_id_; |
| 170 | 168 |
| 171 // GET or POST. | 169 // GET or POST. |
| 172 RequestMethod method_; | 170 RequestMethod method_; |
| 173 | 171 |
| 174 DISALLOW_COPY_AND_ASSIGN(FormStructure); | 172 DISALLOW_COPY_AND_ASSIGN(FormStructure); |
| 175 }; | 173 }; |
| 176 | 174 |
| 177 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ | 175 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ |
| OLD | NEW |