Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/common/instant_types.h

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/web_dialog_web_contents_delegate_unittest.cc ('k') | chrome/renderer/chrome_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698