| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SESSIONS_CHROME_SERIALIZED_NAVIGATION_DRIVER_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_CHROME_SERIALIZED_NAVIGATION_DRIVER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "components/sessions/content/content_serialized_navigation_driver.h" |
| 12 |
| 13 namespace base { |
| 14 template <typename T> |
| 15 struct DefaultSingletonTraits; |
| 16 } |
| 17 |
| 18 // Provides an implementation of ContentSerializedNavigationDriver that knows |
| 19 // about chrome/ specifics. |
| 20 class ChromeSerializedNavigationDriver |
| 21 : public sessions::ContentSerializedNavigationDriver { |
| 22 public: |
| 23 ~ChromeSerializedNavigationDriver() override; |
| 24 |
| 25 // Returns the singleton ChromeSerializedNavigationDriver. Almost all |
| 26 // callers should use SerializedNavigationDriver::Get() instead. |
| 27 static ChromeSerializedNavigationDriver* GetInstance(); |
| 28 |
| 29 // sessions::ContentSerializedNavigationDriver implementation. |
| 30 void Sanitize(sessions::SerializedNavigationEntry* navigation) const override; |
| 31 |
| 32 private: |
| 33 friend struct base::DefaultSingletonTraits<ChromeSerializedNavigationDriver>; |
| 34 |
| 35 ChromeSerializedNavigationDriver(); |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeSerializedNavigationDriver); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_SESSIONS_CHROME_SERIALIZED_NAVIGATION_DRIVER_H_ |
| OLD | NEW |