OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 | 9 |
10 MSVC_PUSH_WARNING_LEVEL(0); | 10 MSVC_PUSH_WARNING_LEVEL(0); |
11 #include "HistoryItem.h" | 11 #include "HistoryItem.h" |
12 #include "PlatformString.h" | 12 #include "PlatformString.h" |
13 #include "ResourceRequest.h" | 13 #include "ResourceRequest.h" |
14 MSVC_POP_WARNING(); | 14 MSVC_POP_WARNING(); |
15 #undef LOG | 15 #undef LOG |
16 | 16 |
17 #include "webkit/glue/glue_serialize.h" | 17 #include "webkit/glue/glue_serialize.h" |
18 | 18 |
19 #include "base/pickle.h" | 19 #include "base/pickle.h" |
20 #include "base/scoped_ptr.h" | |
21 #include "base/string_util.h" | 20 #include "base/string_util.h" |
22 #include "webkit/glue/glue_util.h" | 21 #include "webkit/glue/glue_util.h" |
23 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
24 | 23 |
25 using namespace WebCore; | 24 using namespace WebCore; |
26 | 25 |
27 namespace webkit_glue { | 26 namespace webkit_glue { |
28 | 27 |
29 struct SerializeObject { | 28 struct SerializeObject { |
30 SerializeObject() : iter(NULL) {} | 29 SerializeObject() : iter(NULL) {} |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 353 |
355 std::string CreateHistoryStateForURL(const GURL& url) { | 354 std::string CreateHistoryStateForURL(const GURL& url) { |
356 // TODO(eseide): We probably should be passing a list visit time other than 0 | 355 // TODO(eseide): We probably should be passing a list visit time other than 0 |
357 RefPtr<HistoryItem> item(HistoryItem::create(GURLToKURL(url), String(), 0)); | 356 RefPtr<HistoryItem> item(HistoryItem::create(GURLToKURL(url), String(), 0)); |
358 std::string data; | 357 std::string data; |
359 HistoryItemToString(item, &data); | 358 HistoryItemToString(item, &data); |
360 return data; | 359 return data; |
361 } | 360 } |
362 | 361 |
363 } // namespace webkit_glue | 362 } // namespace webkit_glue |
OLD | NEW |