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

Side by Side Diff: content/browser/quota/mock_quota_manager.cc

Issue 1874893002: Convert //content/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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/quota/mock_quota_manager.h" 5 #include "content/browser/quota/mock_quota_manager.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <memory>
8 9
9 #include "base/location.h" 10 #include "base/location.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 using storage::kQuotaStatusOk; 16 using storage::kQuotaStatusOk;
17 17
18 namespace content { 18 namespace content {
19 19
20 MockQuotaManager::OriginInfo::OriginInfo( 20 MockQuotaManager::OriginInfo::OriginInfo(
21 const GURL& origin, 21 const GURL& origin,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 callback.Run(*origins, storage_type); 142 callback.Run(*origins, storage_type);
143 } 143 }
144 144
145 void MockQuotaManager::DidDeleteOriginData( 145 void MockQuotaManager::DidDeleteOriginData(
146 const StatusCallback& callback, 146 const StatusCallback& callback,
147 QuotaStatusCode status) { 147 QuotaStatusCode status) {
148 callback.Run(status); 148 callback.Run(status);
149 } 149 }
150 150
151 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/mock_quota_manager.h ('k') | content/browser/quota/mock_quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698