OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |