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

Unified Diff: sync/engine/get_updates_delegate.h

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix conflicts 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
« no previous file with comments | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/get_updates_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/get_updates_delegate.h
diff --git a/sync/engine/get_updates_delegate.h b/sync/engine/get_updates_delegate.h
index 9b8e09de7fca3d202a5a548ba233655972694af0..09765a8310741f94fc846ed7af1a9eadb5e9aee3 100644
--- a/sync/engine/get_updates_delegate.h
+++ b/sync/engine/get_updates_delegate.h
@@ -5,6 +5,8 @@
#ifndef SYNC_ENGINE_GET_UPDATES_DELEGATE_H_
#define SYNC_ENGINE_GET_UPDATES_DELEGATE_H_
+#include <memory>
+
#include "base/macros.h"
#include "sync/internal_api/public/events/protocol_event.h"
#include "sync/protocol/sync.pb.h"
@@ -35,7 +37,7 @@ class SYNC_EXPORT GetUpdatesDelegate {
sessions::StatusController* status,
UpdateHandlerMap* update_handler_map) const = 0;
- virtual scoped_ptr<ProtocolEvent> GetNetworkRequestEvent(
+ virtual std::unique_ptr<ProtocolEvent> GetNetworkRequestEvent(
base::Time timestamp,
const sync_pb::ClientToServerMessage& request) const = 0;
};
@@ -56,7 +58,7 @@ class SYNC_EXPORT NormalGetUpdatesDelegate : public GetUpdatesDelegate {
sessions::StatusController* status,
UpdateHandlerMap* update_handler_map) const override;
- scoped_ptr<ProtocolEvent> GetNetworkRequestEvent(
+ std::unique_ptr<ProtocolEvent> GetNetworkRequestEvent(
base::Time timestamp,
const sync_pb::ClientToServerMessage& request) const override;
@@ -85,7 +87,7 @@ class SYNC_EXPORT ConfigureGetUpdatesDelegate : public GetUpdatesDelegate {
sessions::StatusController* status,
UpdateHandlerMap* update_handler_map) const override;
- scoped_ptr<ProtocolEvent> GetNetworkRequestEvent(
+ std::unique_ptr<ProtocolEvent> GetNetworkRequestEvent(
base::Time timestamp,
const sync_pb::ClientToServerMessage& request) const override;
@@ -113,7 +115,7 @@ class SYNC_EXPORT PollGetUpdatesDelegate : public GetUpdatesDelegate {
sessions::StatusController* status,
UpdateHandlerMap* update_handler_map) const override;
- scoped_ptr<ProtocolEvent> GetNetworkRequestEvent(
+ std::unique_ptr<ProtocolEvent> GetNetworkRequestEvent(
base::Time timestamp,
const sync_pb::ClientToServerMessage& request) const override;
« no previous file with comments | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/get_updates_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698