| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
| 6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "content/public/common/page_transition_types.h" | |
| 14 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 15 | 14 |
| 16 // ID used by Instant code to refer to objects (e.g. Autocomplete results, Most | 15 // ID used by Instant code to refer to objects (e.g. Autocomplete results, Most |
| 17 // Visited items) that the Instant page needs access to. | 16 // Visited items) that the Instant page needs access to. |
| 18 typedef int InstantRestrictedID; | 17 typedef int InstantRestrictedID; |
| 19 | 18 |
| 20 // A wrapper to hold Instant suggested text and its metadata. Used to tell the | 19 // A wrapper to hold Instant suggested text and its metadata. Used to tell the |
| 21 // server what suggestion to prefetch. | 20 // server what suggestion to prefetch. |
| 22 struct InstantSuggestion { | 21 struct InstantSuggestion { |
| 23 InstantSuggestion(); | 22 InstantSuggestion(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The title of the Most Visited page. May be empty, in which case the |url| | 125 // The title of the Most Visited page. May be empty, in which case the |url| |
| 127 // is used as the title. | 126 // is used as the title. |
| 128 base::string16 title; | 127 base::string16 title; |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 // An InstantMostVisitedItem along with its assigned restricted ID. | 130 // An InstantMostVisitedItem along with its assigned restricted ID. |
| 132 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> | 131 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> |
| 133 InstantMostVisitedItemIDPair; | 132 InstantMostVisitedItemIDPair; |
| 134 | 133 |
| 135 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 134 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
| OLD | NEW |