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

Side by Side Diff: chromecast/service/cast_service.h

Issue 1875623002: Convert //chromecast 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 #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
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_
OLDNEW
« no previous file with comments | « chromecast/renderer/media/video_pipeline_proxy.cc ('k') | chromecast/utility/cast_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698