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

Side by Side Diff: chrome/browser/sessions/chrome_serialized_navigation_driver.h

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Fix Android Created 3 years, 9 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/sessions/chrome_serialized_navigation_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698