Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / components / sessions / content / content_serialized_navigation_driver.h
blobc7829f243d3da1f4bc196d7d39d4a16fded6236a
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_
8 #include "components/sessions/core/serialized_navigation_driver.h"
10 #include "components/sessions/sessions_export.h"
12 template <typename T> struct DefaultSingletonTraits;
14 namespace sessions {
16 // Provides an implementation of SerializedNavigationDriver that is backed by
17 // content classes.
18 class SESSIONS_EXPORT_PRIVATE ContentSerializedNavigationDriver
19 : public SerializedNavigationDriver {
20 public:
21 ~ContentSerializedNavigationDriver() override;
23 // Returns the singleton ContentSerializedNavigationDriver. Almost all
24 // callers should use SerializedNavigationDriver::Get() instead.
25 static ContentSerializedNavigationDriver* GetInstance();
27 // SerializedNavigationDriver implementation.
28 int GetDefaultReferrerPolicy() const override;
29 std::string GetSanitizedPageStateForPickle(
30 const SerializedNavigationEntry* navigation) const override;
31 void Sanitize(SerializedNavigationEntry* navigation) const override;
33 private:
34 ContentSerializedNavigationDriver();
35 friend struct DefaultSingletonTraits<ContentSerializedNavigationDriver>;
38 } // namespace sessions
40 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_