OLD | NEW |
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 #ifndef COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ | 5 #ifndef COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ |
6 #define COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ | 6 #define COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ |
7 | 7 |
| 8 #include "components/sessions/content/extended_info_handler.h" |
8 #include "components/sessions/core/serialized_navigation_driver.h" | 9 #include "components/sessions/core/serialized_navigation_driver.h" |
9 | 10 |
10 namespace base { | 11 namespace base { |
11 template <typename T> struct DefaultSingletonTraits; | 12 template <typename T> struct DefaultSingletonTraits; |
12 } | 13 } |
13 | 14 |
14 namespace sessions { | 15 namespace sessions { |
15 | 16 |
16 // Provides an iOS implementation of SerializedNavigationDriver that is backed | 17 // Provides an iOS implementation of SerializedNavigationDriver that is backed |
17 // by //ios/web classes. | 18 // by //ios/web classes. |
(...skipping 10 matching lines...) Expand all Loading... |
28 int GetDefaultReferrerPolicy() const override; | 29 int GetDefaultReferrerPolicy() const override; |
29 bool MapReferrerPolicyToOldValues(int referrer_policy, | 30 bool MapReferrerPolicyToOldValues(int referrer_policy, |
30 int* mapped_referrer_policy) const override; | 31 int* mapped_referrer_policy) const override; |
31 bool MapReferrerPolicyToNewValues(int referrer_policy, | 32 bool MapReferrerPolicyToNewValues(int referrer_policy, |
32 int* mapped_referrer_policy) const override; | 33 int* mapped_referrer_policy) const override; |
33 std::string GetSanitizedPageStateForPickle( | 34 std::string GetSanitizedPageStateForPickle( |
34 const SerializedNavigationEntry* navigation) const override; | 35 const SerializedNavigationEntry* navigation) const override; |
35 void Sanitize(SerializedNavigationEntry* navigation) const override; | 36 void Sanitize(SerializedNavigationEntry* navigation) const override; |
36 std::string StripReferrerFromPageState( | 37 std::string StripReferrerFromPageState( |
37 const std::string& page_state) const override; | 38 const std::string& page_state) const override; |
| 39 void RegisterExtendedInfoHandler( |
| 40 const std::string& key, |
| 41 std::unique_ptr<ExtendedInfoHandler> handler) override; |
| 42 const ExtendedInfoHandlerMap& GetAllExtendedInfoHandlers() const override; |
38 | 43 |
39 private: | 44 private: |
40 IOSSerializedNavigationDriver(); | 45 IOSSerializedNavigationDriver(); |
41 friend struct base::DefaultSingletonTraits<IOSSerializedNavigationDriver>; | 46 friend struct base::DefaultSingletonTraits<IOSSerializedNavigationDriver>; |
| 47 |
| 48 ExtendedInfoHandlerMap extended_info_handler_map_; |
42 }; | 49 }; |
43 | 50 |
44 } // namespace sessions | 51 } // namespace sessions |
45 | 52 |
46 #endif // COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ | 53 #endif // COMPONENTS_SESSIONS_IOS_IOS_SERIALIZED_NAVIGATION_DRIVER_H_ |
OLD | NEW |