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

Side by Side Diff: components/sessions/ios/ios_serialized_navigation_driver.cc

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Add missing new file Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ios/ios_serialized_navigation_driver.h" 5 #include "components/sessions/ios/ios_serialized_navigation_driver.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "components/sessions/core/serialized_navigation_entry.h" 8 #include "components/sessions/core/serialized_navigation_entry.h"
9 #include "ios/web/public/referrer.h" 9 #include "ios/web/public/referrer.h"
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 navigation->referrer_url_ = GURL(); 129 navigation->referrer_url_ = GURL();
130 navigation->referrer_policy_ = GetDefaultReferrerPolicy(); 130 navigation->referrer_policy_ = GetDefaultReferrerPolicy();
131 } 131 }
132 } 132 }
133 133
134 std::string IOSSerializedNavigationDriver::StripReferrerFromPageState( 134 std::string IOSSerializedNavigationDriver::StripReferrerFromPageState(
135 const std::string& page_state) const { 135 const std::string& page_state) const {
136 return std::string(); 136 return std::string();
137 } 137 }
138 138
139 void IOSSerializedNavigationDriver::RegisterExtendedInfoHandler(
140 const std::string& key,
141 std::unique_ptr<ExtendedInfoHandler> handler) {
142 DCHECK(!key.empty());
143 extended_info_handler_map_[key] = std::move(handler);
144 }
145
146 const SerializedNavigationDriver::ExtendedInfoHandlerMap&
147 IOSSerializedNavigationDriver::GetAllExtendedInfoHandlers() const {
148 return extended_info_handler_map_;
149 }
150
139 } // namespace sessions 151 } // namespace sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698