Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: components/sessions/content/content_serialized_navigation_driver.h

Issue 869613006: Move referrer policy to a different field when serializing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/sessions/content/content_serialized_navigation_driver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/sessions_export.h" 10 #include "components/sessions/sessions_export.h"
11 11
12 template <typename T> struct DefaultSingletonTraits; 12 template <typename T> struct DefaultSingletonTraits;
13 13
14 namespace sessions { 14 namespace sessions {
15 15
16 // Provides an implementation of SerializedNavigationDriver that is backed by 16 // Provides an implementation of SerializedNavigationDriver that is backed by
17 // content classes. 17 // content classes.
18 class SESSIONS_EXPORT_PRIVATE ContentSerializedNavigationDriver 18 class SESSIONS_EXPORT_PRIVATE ContentSerializedNavigationDriver
19 : public SerializedNavigationDriver { 19 : public SerializedNavigationDriver {
20 public: 20 public:
21 ~ContentSerializedNavigationDriver() override; 21 ~ContentSerializedNavigationDriver() override;
22 22
23 // Returns the singleton ContentSerializedNavigationDriver. Almost all 23 // Returns the singleton ContentSerializedNavigationDriver. Almost all
24 // callers should use SerializedNavigationDriver::Get() instead. 24 // callers should use SerializedNavigationDriver::Get() instead.
25 static ContentSerializedNavigationDriver* GetInstance(); 25 static ContentSerializedNavigationDriver* GetInstance();
26 26
27 // SerializedNavigationDriver implementation. 27 // SerializedNavigationDriver implementation.
28 int GetDefaultReferrerPolicy() const override; 28 int GetDefaultReferrerPolicy() const override;
29 bool MapReferrerPolicyToOldValues(int referrer_policy,
30 int* mapped_referrer_policy) const override;
31 bool MapReferrerPolicyToNewValues(int referrer_policy,
32 int* mapped_referrer_policy) const override;
29 std::string GetSanitizedPageStateForPickle( 33 std::string GetSanitizedPageStateForPickle(
30 const SerializedNavigationEntry* navigation) const override; 34 const SerializedNavigationEntry* navigation) const override;
31 void Sanitize(SerializedNavigationEntry* navigation) const override; 35 void Sanitize(SerializedNavigationEntry* navigation) const override;
32 36
33 private: 37 private:
34 ContentSerializedNavigationDriver(); 38 ContentSerializedNavigationDriver();
35 friend struct DefaultSingletonTraits<ContentSerializedNavigationDriver>; 39 friend struct DefaultSingletonTraits<ContentSerializedNavigationDriver>;
36 }; 40 };
37 41
38 } // namespace sessions 42 } // namespace sessions
39 43
40 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_ 44 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_
OLDNEW
« no previous file with comments | « no previous file | components/sessions/content/content_serialized_navigation_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698