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 "android_webview/native/state_serializer.h" | 5 #include "android_webview/native/state_serializer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/pickle.h" | 10 #include "base/pickle.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 content::Referrer referrer; | 214 content::Referrer referrer; |
215 string referrer_url; | 215 string referrer_url; |
216 int policy; | 216 int policy; |
217 | 217 |
218 if (!iterator->ReadString(&referrer_url)) | 218 if (!iterator->ReadString(&referrer_url)) |
219 return false; | 219 return false; |
220 if (!iterator->ReadInt(&policy)) | 220 if (!iterator->ReadInt(&policy)) |
221 return false; | 221 return false; |
222 | 222 |
223 referrer.url = GURL(referrer_url); | 223 referrer.url = GURL(referrer_url); |
224 referrer.policy = static_cast<WebKit::WebReferrerPolicy>(policy); | 224 referrer.policy = static_cast<blink::WebReferrerPolicy>(policy); |
225 entry->SetReferrer(referrer); | 225 entry->SetReferrer(referrer); |
226 } | 226 } |
227 | 227 |
228 { | 228 { |
229 string16 title; | 229 string16 title; |
230 if (!iterator->ReadString16(&title)) | 230 if (!iterator->ReadString16(&title)) |
231 return false; | 231 return false; |
232 entry->SetTitle(title); | 232 entry->SetTitle(title); |
233 } | 233 } |
234 | 234 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 return false; | 281 return false; |
282 entry->SetHttpStatusCode(http_status_code); | 282 entry->SetHttpStatusCode(http_status_code); |
283 } | 283 } |
284 | 284 |
285 return true; | 285 return true; |
286 } | 286 } |
287 | 287 |
288 } // namespace internal | 288 } // namespace internal |
289 | 289 |
290 } // namespace android_webview | 290 } // namespace android_webview |
OLD | NEW |