OLD | NEW |
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 #ifndef CHROMECAST_SERVICE_CAST_SERVICE_H_ | 5 #ifndef CHROMECAST_SERVICE_CAST_SERVICE_H_ |
6 #define CHROMECAST_SERVICE_CAST_SERVICE_H_ | 6 #define CHROMECAST_SERVICE_CAST_SERVICE_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 | 12 |
12 class PrefService; | 13 class PrefService; |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class ThreadChecker; | 16 class ThreadChecker; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 class BrowserContext; | 20 class BrowserContext; |
20 } | 21 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // StartInternal() should be finalized here. | 61 // StartInternal() should be finalized here. |
61 virtual void StopInternal() = 0; | 62 virtual void StopInternal() = 0; |
62 | 63 |
63 content::BrowserContext* browser_context() const { return browser_context_; } | 64 content::BrowserContext* browser_context() const { return browser_context_; } |
64 PrefService* pref_service() const { return pref_service_; } | 65 PrefService* pref_service() const { return pref_service_; } |
65 | 66 |
66 private: | 67 private: |
67 content::BrowserContext* const browser_context_; | 68 content::BrowserContext* const browser_context_; |
68 PrefService* const pref_service_; | 69 PrefService* const pref_service_; |
69 bool stopped_; | 70 bool stopped_; |
70 const scoped_ptr<base::ThreadChecker> thread_checker_; | 71 const std::unique_ptr<base::ThreadChecker> thread_checker_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(CastService); | 73 DISALLOW_COPY_AND_ASSIGN(CastService); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace chromecast | 76 } // namespace chromecast |
76 | 77 |
77 #endif // CHROMECAST_SERVICE_CAST_SERVICE_H_ | 78 #endif // CHROMECAST_SERVICE_CAST_SERVICE_H_ |
OLD | NEW |