OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // Stops the thread. | 46 // Stops the thread. |
47 void Stop(); | 47 void Stop(); |
48 | 48 |
49 // Returns true if the thread is running. | 49 // Returns true if the thread is running. |
50 bool IsRunning(); | 50 bool IsRunning(); |
51 | 51 |
52 private: | 52 private: |
53 std::unique_ptr<TestBrowserThreadImpl> impl_; | 53 std::unique_ptr<TestBrowserThreadImpl> impl_; |
54 | 54 |
| 55 const BrowserThread::ID identifier_; |
| 56 |
55 DISALLOW_COPY_AND_ASSIGN(TestBrowserThread); | 57 DISALLOW_COPY_AND_ASSIGN(TestBrowserThread); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace content | 60 } // namespace content |
59 | 61 |
60 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 62 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
OLD | NEW |