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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h

Issue 1873263002: Convert //components/data_reduction_proxy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback 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/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h
index e1ce53699cc652d8862db7c4e08e23bfdc5a78ef..978c8e2f7843d2560a41fa8a3469a8fed9c1392d 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h
@@ -7,7 +7,7 @@
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
namespace base {
class Value;
@@ -26,18 +26,19 @@ class DataReductionProxyEventStorageDelegate {
};
// Stores a DATA_REDUCTION_PROXY event with no parameters.
- virtual void AddEvent(scoped_ptr<base::Value> event) = 0;
+ virtual void AddEvent(std::unique_ptr<base::Value> event) = 0;
// Stores a DATA_REDUCTION_PROXY_ENABLED event.
- virtual void AddEnabledEvent(scoped_ptr<base::Value> event, bool enabled) = 0;
+ virtual void AddEnabledEvent(std::unique_ptr<base::Value> event,
+ bool enabled) = 0;
// Stores a DATA_REDUCTION_PROXY_BYPASS_REQUESTED event.
- virtual void AddAndSetLastBypassEvent(scoped_ptr<base::Value> event,
+ virtual void AddAndSetLastBypassEvent(std::unique_ptr<base::Value> event,
int64_t expiration_ticks) = 0;
// Stores a DATA_REDUCTION_PROXY_CANARY_REQUEST event.
virtual void AddEventAndSecureProxyCheckState(
- scoped_ptr<base::Value> event,
+ std::unique_ptr<base::Value> event,
SecureProxyCheckState state) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698