| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class DictionaryValue; | 17 class DictionaryValue; |
| 17 } | 18 } |
| 18 | 19 |
| 19 // Structured representation of the JSON payload of a suggestion with an answer. | 20 // Structured representation of the JSON payload of a suggestion with an answer. |
| 20 // An answer has exactly two image lines, so called because they are a | 21 // An answer has exactly two image lines, so called because they are a |
| 21 // combination of text and an optional image URL. Each image line has 1 or more | 22 // combination of text and an optional image URL. Each image line has 1 or more |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 SuggestionAnswer& operator=(const SuggestionAnswer&); | 150 SuggestionAnswer& operator=(const SuggestionAnswer&); |
| 150 | 151 |
| 151 ImageLine first_line_; | 152 ImageLine first_line_; |
| 152 ImageLine second_line_; | 153 ImageLine second_line_; |
| 153 int type_; | 154 int type_; |
| 154 | 155 |
| 155 FRIEND_TEST_ALL_PREFIXES(SuggestionAnswerTest, DifferentValuesAreUnequal); | 156 FRIEND_TEST_ALL_PREFIXES(SuggestionAnswerTest, DifferentValuesAreUnequal); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 #endif // COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ | 159 #endif // COMPONENTS_OMNIBOX_BROWSER_SUGGESTION_ANSWER_H_ |
| OLD | NEW |