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

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

Issue 18050008: Use a direct include of time headers in android_webview/, apps/, ash/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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"
11 #include "base/time.h" 11 #include "base/time/time.h"
12 #include "content/public/browser/navigation_controller.h" 12 #include "content/public/browser/navigation_controller.h"
13 #include "content/public/browser/navigation_entry.h" 13 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/common/page_state.h" 15 #include "content/public/common/page_state.h"
16 16
17 // Reasons for not re-using TabNavigation under chrome/ as of 20121116: 17 // Reasons for not re-using TabNavigation under chrome/ as of 20121116:
18 // * Android WebView has different requirements for fields to store since 18 // * Android WebView has different requirements for fields to store since
19 // we are the only ones using values like BaseURLForDataURL. 19 // we are the only ones using values like BaseURLForDataURL.
20 // * TabNavigation does unnecessary copying of data, which in Android 20 // * TabNavigation does unnecessary copying of data, which in Android
21 // WebView case, is undesired since save/restore is called in Android 21 // WebView case, is undesired since save/restore is called in Android
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return false; 250 return false;
251 entry->SetTimestamp(base::Time::FromInternalValue(timestamp)); 251 entry->SetTimestamp(base::Time::FromInternalValue(timestamp));
252 } 252 }
253 253
254 return true; 254 return true;
255 } 255 }
256 256
257 } // namespace internal 257 } // namespace internal
258 258
259 } // namespace android_webview 259 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_form_database.cc ('k') | android_webview/native/state_serializer_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698