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

Unified Diff: extensions/browser/extension_throttle_manager.h

Issue 1909773002: Convert //extensions/browser 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
« no previous file with comments | « extensions/browser/extension_throttle_entry.cc ('k') | extensions/browser/extension_throttle_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_throttle_manager.h
diff --git a/extensions/browser/extension_throttle_manager.h b/extensions/browser/extension_throttle_manager.h
index 5a5b2845c5231f3c6e7875a39d560d39e0d83d01..14c37baf4c012f50dd1627afe7edd0b920656700 100644
--- a/extensions/browser/extension_throttle_manager.h
+++ b/extensions/browser/extension_throttle_manager.h
@@ -6,11 +6,11 @@
#define EXTENSIONS_BROWSER_EXTENSION_THROTTLE_MANAGER_H_
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/platform_thread.h"
#include "extensions/browser/extension_throttle_entry.h"
@@ -49,7 +49,7 @@ class ExtensionThrottleManager
// Creates a content::ResourceThrottle for |request| to prevent extensions
// from requesting a URL too often, if such a throttle is needed.
- scoped_ptr<content::ResourceThrottle> MaybeCreateThrottle(
+ std::unique_ptr<content::ResourceThrottle> MaybeCreateThrottle(
const net::URLRequest* request);
// TODO(xunjieli): Remove this method and replace with
@@ -64,7 +64,8 @@ class ExtensionThrottleManager
scoped_refptr<ExtensionThrottleEntryInterface> RegisterRequestUrl(
const GURL& url);
- void SetBackoffPolicyForTests(scoped_ptr<net::BackoffEntry::Policy> policy);
+ void SetBackoffPolicyForTests(
+ std::unique_ptr<net::BackoffEntry::Policy> policy);
// Registers a new entry in this service and overrides the existing entry (if
// any) for the URL. The service will hold a reference to the entry.
@@ -175,7 +176,7 @@ class ExtensionThrottleManager
bool ignore_user_gesture_load_flag_for_tests_;
// This is NULL when it is not set for tests.
- scoped_ptr<net::BackoffEntry::Policy> backoff_policy_for_tests_;
+ std::unique_ptr<net::BackoffEntry::Policy> backoff_policy_for_tests_;
DISALLOW_COPY_AND_ASSIGN(ExtensionThrottleManager);
};
« no previous file with comments | « extensions/browser/extension_throttle_entry.cc ('k') | extensions/browser/extension_throttle_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698