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_RENDERER_NAVIGATION_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "content/common/content_export.h" |
10 #include "content/public/common/page_transition_types.h" | 11 #include "content/public/common/page_transition_types.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 // NavigationState is the portion of DocumentState that is affected by | 15 // NavigationState is the portion of DocumentState that is affected by |
15 // in-document navigation. | 16 // in-document navigation. |
16 // TODO(simonjam): Move this to HistoryItem's ExtraData. | 17 // TODO(simonjam): Move this to HistoryItem's ExtraData. |
17 class NavigationState { | 18 class CONTENT_EXPORT NavigationState { |
18 public: | 19 public: |
19 virtual ~NavigationState(); | 20 virtual ~NavigationState(); |
20 | 21 |
21 static NavigationState* CreateBrowserInitiated( | 22 static NavigationState* CreateBrowserInitiated( |
22 int32 pending_page_id, | 23 int32 pending_page_id, |
23 int pending_history_list_offset, | 24 int pending_history_list_offset, |
24 content::PageTransition transition_type) { | 25 content::PageTransition transition_type) { |
25 return new NavigationState(transition_type, false, pending_page_id, | 26 return new NavigationState(transition_type, false, pending_page_id, |
26 pending_history_list_offset); | 27 pending_history_list_offset); |
27 } | 28 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 int transferred_request_request_id_; | 104 int transferred_request_request_id_; |
104 bool allow_download_; | 105 bool allow_download_; |
105 std::string extra_headers_; | 106 std::string extra_headers_; |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 108 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
108 }; | 109 }; |
109 | 110 |
110 } // namespace content | 111 } // namespace content |
111 | 112 |
112 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 113 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
OLD | NEW |