OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/sessions/serialized_navigation_entry.h" | 5 #include "components/sessions/serialized_navigation_entry.h" |
6 | 6 |
7 #include "base/pickle.h" | 7 #include "base/pickle.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "content/public/browser/favicon_status.h" | 9 #include "content/public/browser/favicon_status.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
11 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
12 #include "sync/protocol/session_specifics.pb.h" | 12 #include "sync/protocol/session_specifics.pb.h" |
13 #include "sync/util/time.h" | 13 #include "sync/util/time.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" | 14 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
15 #include "webkit/glue/glue_serialize.h" | 15 #include "webkit/glue/glue_serialize.h" |
16 | 16 |
17 using content::NavigationEntry; | 17 using content::NavigationEntry; |
18 | 18 |
19 namespace sessions { | 19 namespace sessions { |
20 | 20 |
21 const char kSearchTermsKey[] = "search_terms"; | 21 const char kSearchTermsKey[] = "search_terms"; |
22 | 22 |
23 SerializedNavigationEntry::SerializedNavigationEntry() | 23 SerializedNavigationEntry::SerializedNavigationEntry() |
24 : index_(-1), | 24 : index_(-1), |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 for (std::vector<SerializedNavigationEntry>::const_iterator | 445 for (std::vector<SerializedNavigationEntry>::const_iterator |
446 it = navigations.begin(); it != navigations.end(); ++it) { | 446 it = navigations.begin(); it != navigations.end(); ++it) { |
447 entries.push_back( | 447 entries.push_back( |
448 it->ToNavigationEntry(page_id, browser_context).release()); | 448 it->ToNavigationEntry(page_id, browser_context).release()); |
449 ++page_id; | 449 ++page_id; |
450 } | 450 } |
451 return entries; | 451 return entries; |
452 } | 452 } |
453 | 453 |
454 } // namespace sessions | 454 } // namespace sessions |
OLD | NEW |