OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/public/common/page_state.h" | 5 #include "content/public/common/page_state.h" |
6 | 6 |
7 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 7 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
10 #include "webkit/base/file_path_string_conversions.h" | 10 #include "webkit/common/base/file_path_string_conversions.h" |
11 #include "webkit/glue/glue_serialize_deprecated.h" | 11 #include "webkit/glue/glue_serialize_deprecated.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // static | 15 // static |
16 PageState PageState::CreateFromURL(const GURL& url) { | 16 PageState PageState::CreateFromURL(const GURL& url) { |
17 return PageState(webkit_glue::CreateHistoryStateForURL(url)); | 17 return PageState(webkit_glue::CreateHistoryStateForURL(url)); |
18 } | 18 } |
19 | 19 |
20 // static | 20 // static |
(...skipping 29 matching lines...) Expand all Loading... |
50 | 50 |
51 PageState PageState::RemovePasswordData() const { | 51 PageState PageState::RemovePasswordData() const { |
52 return PageState(webkit_glue::RemovePasswordDataFromHistoryState(data_)); | 52 return PageState(webkit_glue::RemovePasswordDataFromHistoryState(data_)); |
53 } | 53 } |
54 | 54 |
55 PageState PageState::RemoveScrollOffset() const { | 55 PageState PageState::RemoveScrollOffset() const { |
56 return PageState(webkit_glue::RemoveScrollOffsetFromHistoryState(data_)); | 56 return PageState(webkit_glue::RemoveScrollOffsetFromHistoryState(data_)); |
57 } | 57 } |
58 | 58 |
59 } // namespace content | 59 } // namespace content |
OLD | NEW |