OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/renderer/history_serialization.h" | 5 #include "content/renderer/history_serialization.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "content/common/page_state_serialization.h" | 9 #include "content/common/page_state_serialization.h" |
8 #include "content/public/common/page_state.h" | 10 #include "content/public/common/page_state.h" |
9 #include "content/renderer/history_entry.h" | 11 #include "content/renderer/history_entry.h" |
10 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 12 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
11 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 13 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
12 #include "third_party/WebKit/public/platform/WebPoint.h" | 14 #include "third_party/WebKit/public/platform/WebPoint.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
14 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
15 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 17 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
16 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" | 18 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 if (!DecodePageState(page_state.ToEncodedData(), &state)) | 203 if (!DecodePageState(page_state.ToEncodedData(), &state)) |
202 return scoped_ptr<HistoryEntry>(); | 204 return scoped_ptr<HistoryEntry>(); |
203 | 205 |
204 scoped_ptr<HistoryEntry> entry(new HistoryEntry()); | 206 scoped_ptr<HistoryEntry> entry(new HistoryEntry()); |
205 RecursivelyGenerateHistoryItem(state.top, entry->root_history_node()); | 207 RecursivelyGenerateHistoryItem(state.top, entry->root_history_node()); |
206 | 208 |
207 return entry.Pass(); | 209 return entry.Pass(); |
208 } | 210 } |
209 | 211 |
210 } // namespace content | 212 } // namespace content |
OLD | NEW |