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

Side by Side Diff: content/utility/in_process_utility_thread.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/test/web_gesture_curve_mock.h ('k') | content/utility/utility_blink_platform_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UTILITY_IN_PROCESS_UTILITY_THREAD_H_ 5 #ifndef CONTENT_UTILITY_IN_PROCESS_UTILITY_THREAD_H_
6 #define CONTENT_UTILITY_IN_PROCESS_UTILITY_THREAD_H_ 6 #define CONTENT_UTILITY_IN_PROCESS_UTILITY_THREAD_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/common/in_process_child_thread_params.h" 14 #include "content/common/in_process_child_thread_params.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class ChildProcess; 18 class ChildProcess;
19 19
20 class InProcessUtilityThread : public base::Thread { 20 class InProcessUtilityThread : public base::Thread {
21 public: 21 public:
22 InProcessUtilityThread(const InProcessChildThreadParams& params); 22 InProcessUtilityThread(const InProcessChildThreadParams& params);
23 ~InProcessUtilityThread() override; 23 ~InProcessUtilityThread() override;
24 24
25 private: 25 private:
26 // base::Thread implementation: 26 // base::Thread implementation:
27 void Init() override; 27 void Init() override;
28 void CleanUp() override; 28 void CleanUp() override;
29 29
30 void InitInternal(); 30 void InitInternal();
31 31
32 InProcessChildThreadParams params_; 32 InProcessChildThreadParams params_;
33 scoped_ptr<ChildProcess> child_process_; 33 std::unique_ptr<ChildProcess> child_process_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(InProcessUtilityThread); 35 DISALLOW_COPY_AND_ASSIGN(InProcessUtilityThread);
36 }; 36 };
37 37
38 CONTENT_EXPORT base::Thread* CreateInProcessUtilityThread( 38 CONTENT_EXPORT base::Thread* CreateInProcessUtilityThread(
39 const InProcessChildThreadParams& params); 39 const InProcessChildThreadParams& params);
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_UTILITY_IN_PROCESS_UTILITY_THREAD_H_ 43 #endif // CONTENT_UTILITY_IN_PROCESS_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « content/test/web_gesture_curve_mock.h ('k') | content/utility/utility_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698