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_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ |
6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ | 6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/sessions/sessions_export.h" | 10 #include "components/sessions/sessions_export.h" |
11 | 11 |
12 namespace sessions { | 12 namespace sessions { |
| 13 |
13 class SerializedNavigationEntry; | 14 class SerializedNavigationEntry; |
14 | 15 |
15 // The SerializedNavigationDriver interface allows SerializedNavigationEntry to | 16 // The SerializedNavigationDriver interface allows SerializedNavigationEntry to |
16 // obtain information from a singleton driver object. A concrete implementation | 17 // obtain information from a singleton driver object. A concrete implementation |
17 // must be provided by the driver on each platform. | 18 // must be provided by the driver on each platform. |
18 class SESSIONS_EXPORT_PRIVATE SerializedNavigationDriver { | 19 class SESSIONS_EXPORT_PRIVATE SerializedNavigationDriver { |
19 public: | 20 public: |
20 virtual ~SerializedNavigationDriver() {} | 21 virtual ~SerializedNavigationDriver() {} |
21 | 22 |
22 // Returns the singleton SerializedNavigationDriver. | 23 // Returns the singleton SerializedNavigationDriver. |
(...skipping 24 matching lines...) Expand all Loading... |
47 virtual void Sanitize(SerializedNavigationEntry* navigation) const = 0; | 48 virtual void Sanitize(SerializedNavigationEntry* navigation) const = 0; |
48 | 49 |
49 // Removes the referrer from the encoded page state. | 50 // Removes the referrer from the encoded page state. |
50 virtual std::string StripReferrerFromPageState( | 51 virtual std::string StripReferrerFromPageState( |
51 const std::string& page_state) const = 0; | 52 const std::string& page_state) const = 0; |
52 }; | 53 }; |
53 | 54 |
54 } // namespace sessions | 55 } // namespace sessions |
55 | 56 |
56 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ | 57 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_DRIVER_H_ |
OLD | NEW |