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

Side by Side Diff: content/public/browser/navigation_entry.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/page_transition_types.h"
15 #include "content/public/common/page_type.h" 14 #include "content/public/common/page_type.h"
16 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
16 #include "ui/base/page_transition_types.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace content { 20 namespace content {
21 21
22 class PageState; 22 class PageState;
23 struct FaviconStatus; 23 struct FaviconStatus;
24 struct SSLStatus; 24 struct SSLStatus;
25 25
26 // A NavigationEntry is a data structure that captures all the information 26 // A NavigationEntry is a data structure that captures all the information
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const std::string& languages) const = 0; 103 const std::string& languages) const = 0;
104 104
105 // Returns true if the current tab is in view source mode. This will be false 105 // Returns true if the current tab is in view source mode. This will be false
106 // if there is no navigation. 106 // if there is no navigation.
107 virtual bool IsViewSourceMode() const = 0; 107 virtual bool IsViewSourceMode() const = 0;
108 108
109 // Tracking stuff ------------------------------------------------------------ 109 // Tracking stuff ------------------------------------------------------------
110 110
111 // The transition type indicates what the user did to move to this page from 111 // The transition type indicates what the user did to move to this page from
112 // the previous page. 112 // the previous page.
113 virtual void SetTransitionType(content::PageTransition transition_type) = 0; 113 virtual void SetTransitionType(ui::PageTransition transition_type) = 0;
114 virtual content::PageTransition GetTransitionType() const = 0; 114 virtual ui::PageTransition GetTransitionType() const = 0;
115 115
116 // The user typed URL was the URL that the user initiated the navigation 116 // The user typed URL was the URL that the user initiated the navigation
117 // with, regardless of any redirects. This is used to generate keywords, for 117 // with, regardless of any redirects. This is used to generate keywords, for
118 // example, based on "what the user thinks the site is called" rather than 118 // example, based on "what the user thinks the site is called" rather than
119 // what it's actually called. For example, if the user types "foo.com", that 119 // what it's actually called. For example, if the user types "foo.com", that
120 // may redirect somewhere arbitrary like "bar.com/foo", and we want to use 120 // may redirect somewhere arbitrary like "bar.com/foo", and we want to use
121 // the name that the user things of the site as having. 121 // the name that the user things of the site as having.
122 // 122 //
123 // This URL will be is_empty() if the URL was navigated to some other way. 123 // This URL will be is_empty() if the URL was navigated to some other way.
124 // Callers should fall back on using the regular or display URL in this case. 124 // Callers should fall back on using the regular or display URL in this case.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; 215 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0;
216 virtual const std::vector<GURL>& GetRedirectChain() const = 0; 216 virtual const std::vector<GURL>& GetRedirectChain() const = 0;
217 217
218 // True if this entry is restored and hasn't been loaded. 218 // True if this entry is restored and hasn't been loaded.
219 virtual bool IsRestored() const = 0; 219 virtual bool IsRestored() const = 0;
220 }; 220 };
221 221
222 } // namespace content 222 } // namespace content
223 223
224 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 224 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.cc ('k') | content/public/browser/page_navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698