OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/common/page_transition_types.h" | 13 #include "content/public/common/page_transition_types.h" |
14 #include "content/public/common/page_type.h" | 14 #include "content/public/common/page_type.h" |
15 #include "content/public/common/referrer.h" | 15 #include "content/public/common/referrer.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 struct FaviconStatus; | 21 struct FaviconStatus; |
22 struct SSLStatus; | 22 struct SSLStatus; |
23 | 23 |
24 // A NavigationEntry is a data structure that captures all the information | 24 // A NavigationEntry is a data structure that captures all the information |
25 // required to recreate a browsing state. This includes some opaque binary | 25 // required to recreate a browsing state. This includes some opaque binary |
26 // state as provided by the TabContents as well as some clear text title and | 26 // state as provided by the WebContentsImpl as well as some clear text title and |
27 // URL which is used for our user interface. | 27 // URL which is used for our user interface. |
28 class NavigationEntry { | 28 class NavigationEntry { |
29 public: | 29 public: |
30 virtual ~NavigationEntry() {} | 30 virtual ~NavigationEntry() {} |
31 | 31 |
32 CONTENT_EXPORT static NavigationEntry* Create(); | 32 CONTENT_EXPORT static NavigationEntry* Create(); |
33 CONTENT_EXPORT static NavigationEntry* Create(const NavigationEntry& copy); | 33 CONTENT_EXPORT static NavigationEntry* Create(const NavigationEntry& copy); |
34 | 34 |
35 // Page-related stuff -------------------------------------------------------- | 35 // Page-related stuff -------------------------------------------------------- |
36 | 36 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual FaviconStatus& GetFavicon() = 0; | 136 virtual FaviconStatus& GetFavicon() = 0; |
137 | 137 |
138 // All the SSL flags and state. See content::SSLStatus. | 138 // All the SSL flags and state. See content::SSLStatus. |
139 virtual const SSLStatus& GetSSL() const = 0; | 139 virtual const SSLStatus& GetSSL() const = 0; |
140 virtual SSLStatus& GetSSL() = 0; | 140 virtual SSLStatus& GetSSL() = 0; |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 145 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |