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" |
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 Loading... |
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 |
OLD | NEW |