| 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 #include "webkit/glue/glue_serialize_deprecated.h" | 5 #include "webkit/glue/glue_serialize_deprecated.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "third_party/WebKit/public/platform/WebData.h" | 12 #include "third_party/WebKit/public/platform/WebData.h" |
| 13 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 13 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
| 14 #include "third_party/WebKit/public/platform/WebPoint.h" | 14 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 15 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/public/platform/WebURL.h" | 16 #include "third_party/WebKit/public/platform/WebURL.h" |
| 17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" |
| 20 #include "ui/gfx/screen.h" | 20 #include "ui/gfx/screen.h" |
| 21 #include "webkit/base/file_path_string_conversions.h" | 21 #include "webkit/common/base/file_path_string_conversions.h" |
| 22 | 22 |
| 23 using WebKit::WebData; | 23 using WebKit::WebData; |
| 24 using WebKit::WebHistoryItem; | 24 using WebKit::WebHistoryItem; |
| 25 using WebKit::WebHTTPBody; | 25 using WebKit::WebHTTPBody; |
| 26 using WebKit::WebPoint; | 26 using WebKit::WebPoint; |
| 27 using WebKit::WebSerializedScriptValue; | 27 using WebKit::WebSerializedScriptValue; |
| 28 using WebKit::WebString; | 28 using WebKit::WebString; |
| 29 using WebKit::WebUChar; | 29 using WebKit::WebUChar; |
| 30 using WebKit::WebVector; | 30 using WebKit::WebVector; |
| 31 | 31 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 // serialization of the given URL with a dummy version number of -1. This | 661 // serialization of the given URL with a dummy version number of -1. This |
| 662 // will be interpreted by ReadHistoryItem as a request to create a default | 662 // will be interpreted by ReadHistoryItem as a request to create a default |
| 663 // WebHistoryItem. | 663 // WebHistoryItem. |
| 664 SerializeObject obj; | 664 SerializeObject obj; |
| 665 WriteInteger(-1, &obj); | 665 WriteInteger(-1, &obj); |
| 666 WriteGURL(url, &obj); | 666 WriteGURL(url, &obj); |
| 667 return obj.GetAsString(); | 667 return obj.GetAsString(); |
| 668 } | 668 } |
| 669 | 669 |
| 670 } // namespace webkit_glue | 670 } // namespace webkit_glue |
| OLD | NEW |