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

Side by Side Diff: ios/web/public/test/test_web_thread.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header 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 IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_
6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_ 6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ios/web/public/web_thread.h" 11 #include "ios/web/public/web_thread.h"
11 12
12 namespace base { 13 namespace base {
13 class MessageLoop; 14 class MessageLoop;
14 } 15 }
15 16
16 namespace web { 17 namespace web {
17 18
18 class TestWebThreadImpl; 19 class TestWebThreadImpl;
19 20
(...skipping 17 matching lines...) Expand all
37 // Starts the thread with an IOThread message loop. 38 // Starts the thread with an IOThread message loop.
38 bool StartIOThread(); 39 bool StartIOThread();
39 40
40 // Stops the thread. 41 // Stops the thread.
41 void Stop(); 42 void Stop();
42 43
43 // Returns true if the thread is running. 44 // Returns true if the thread is running.
44 bool IsRunning(); 45 bool IsRunning();
45 46
46 private: 47 private:
47 scoped_ptr<TestWebThreadImpl> impl_; 48 std::unique_ptr<TestWebThreadImpl> impl_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(TestWebThread); 50 DISALLOW_COPY_AND_ASSIGN(TestWebThread);
50 }; 51 };
51 52
52 } // namespace web 53 } // namespace web
53 54
54 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_ 55 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698