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

Unified Diff: components/sessions/content/content_serialized_navigation_driver.h

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Rebase, 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 side-by-side diff with in-line comments
Download patch
Index: components/sessions/content/content_serialized_navigation_driver.h
diff --git a/components/sessions/content/content_serialized_navigation_driver.h b/components/sessions/content/content_serialized_navigation_driver.h
index 768300dd1c8385a8b52d56c1ab00c32eb2b2f94f..fbca01e121fb5809fdb6b5e711825c4e1093a2f1 100644
--- a/components/sessions/content/content_serialized_navigation_driver.h
+++ b/components/sessions/content/content_serialized_navigation_driver.h
@@ -5,14 +5,13 @@
#ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_
#define COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_DRIVER_H_
-#include "components/sessions/core/serialized_navigation_driver.h"
-
#include <map>
#include <memory>
#include <string>
#include "base/macros.h"
#include "components/sessions/content/extended_info_handler.h"
+#include "components/sessions/core/serialized_navigation_driver.h"
#include "components/sessions/core/sessions_export.h"
namespace base {
@@ -58,6 +57,8 @@ class SESSIONS_EXPORT ContentSerializedNavigationDriver
// Returns all the registered handlers to deal with the extended info.
const ExtendedInfoHandlerMap& GetAllExtendedInfoHandlers() const;
+ void set_callback(const SanitizeCallback& callback) { callback_ = callback; }
+
private:
friend struct base::DefaultSingletonTraits<ContentSerializedNavigationDriver>;
friend class ContentSerializedNavigationBuilderTest;
@@ -65,6 +66,7 @@ class SESSIONS_EXPORT ContentSerializedNavigationDriver
ContentSerializedNavigationDriver();
ExtendedInfoHandlerMap extended_info_handler_map_;
+ SanitizeCallback callback_;
DISALLOW_COPY_AND_ASSIGN(ContentSerializedNavigationDriver);
};

Powered by Google App Engine
This is Rietveld 408576698