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

Unified Diff: components/sessions/core/base_session_service_commands.h

Issue 1912843002: Convert //components/sessions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/core/base_session_service_commands.h
diff --git a/components/sessions/core/base_session_service_commands.h b/components/sessions/core/base_session_service_commands.h
index 6da55a915cb2cfc5d10f36b82254fcb90a7d4b39..05fd51fdb5a347770944a5cb7c511f791566d954 100644
--- a/components/sessions/core/base_session_service_commands.h
+++ b/components/sessions/core/base_session_service_commands.h
@@ -5,9 +5,9 @@
#ifndef COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_COMMANDS_H_
#define COMPONENTS_SESSIONS_CORE_BASE_SESSION_SERVICE_COMMANDS_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "components/sessions/core/session_id.h"
#include "components/sessions/core/sessions_export.h"
@@ -19,26 +19,27 @@ class SerializedNavigationEntry;
// PersistentTabRestoreService.
// Creates a SessionCommand that represents a navigation.
-SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateUpdateTabNavigationCommand(
+SESSIONS_EXPORT std::unique_ptr<SessionCommand>
+CreateUpdateTabNavigationCommand(
SessionID::id_type command_id,
SessionID::id_type tab_id,
const sessions::SerializedNavigationEntry& navigation);
// Creates a SessionCommand that represents marking a tab as an application.
-SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetTabExtensionAppIDCommand(
- SessionID::id_type command_id,
- SessionID::id_type tab_id,
- const std::string& extension_id);
+SESSIONS_EXPORT std::unique_ptr<SessionCommand>
+CreateSetTabExtensionAppIDCommand(SessionID::id_type command_id,
+ SessionID::id_type tab_id,
+ const std::string& extension_id);
// Creates a SessionCommand that containing user agent override used by a
// tab's navigations.
-SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetTabUserAgentOverrideCommand(
- SessionID::id_type command_id,
- SessionID::id_type tab_id,
- const std::string& user_agent_override);
+SESSIONS_EXPORT std::unique_ptr<SessionCommand>
+CreateSetTabUserAgentOverrideCommand(SessionID::id_type command_id,
+ SessionID::id_type tab_id,
+ const std::string& user_agent_override);
// Creates a SessionCommand stores a browser window's app name.
-SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetWindowAppNameCommand(
+SESSIONS_EXPORT std::unique_ptr<SessionCommand> CreateSetWindowAppNameCommand(
SessionID::id_type command_id,
SessionID::id_type window_id,
const std::string& app_name);
« no previous file with comments | « components/sessions/core/base_session_service.cc ('k') | components/sessions/core/base_session_service_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698