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

Side by Side Diff: components/sessions/core/serialized_navigation_driver.h

Issue 1350653004: [sessions] Properly namespace recently-componentized TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac Created 5 years, 3 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
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_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
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_
OLDNEW
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.cc ('k') | components/sessions/core/tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698