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