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