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

Side by Side Diff: content/browser/notifications/platform_notification_context_impl.h

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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_ 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Sets the task runner to use for testing purposes. 141 // Sets the task runner to use for testing purposes.
142 void SetTaskRunnerForTesting( 142 void SetTaskRunnerForTesting(
143 const scoped_refptr<base::SequencedTaskRunner>& task_runner); 143 const scoped_refptr<base::SequencedTaskRunner>& task_runner);
144 144
145 base::FilePath path_; 145 base::FilePath path_;
146 BrowserContext* browser_context_; 146 BrowserContext* browser_context_;
147 147
148 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 148 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
149 149
150 scoped_refptr<base::SequencedTaskRunner> task_runner_; 150 scoped_refptr<base::SequencedTaskRunner> task_runner_;
151 scoped_ptr<NotificationDatabase> database_; 151 std::unique_ptr<NotificationDatabase> database_;
152 152
153 // Indicates whether the database should be pruned when it's opened. 153 // Indicates whether the database should be pruned when it's opened.
154 bool prune_database_on_open_ = false; 154 bool prune_database_on_open_ = false;
155 155
156 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationContextImpl); 156 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationContextImpl);
157 }; 157 };
158 158
159 } // namespace content 159 } // namespace content
160 160
161 #endif // CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_ 161 #endif // CONTENT_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_CONTEXT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698