Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: android_webview/native/state_serializer.cc

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/common/render_view_messages.h ('k') | android_webview/native/state_serializer_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698