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_BROWSER_BROWSER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ |
6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ |
7 | 7 |
8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const base::Closure& task, | 54 const base::Closure& task, |
55 base::TimeDelta delay, | 55 base::TimeDelta delay, |
56 bool nestable); | 56 bool nestable); |
57 | 57 |
58 // Common initialization code for the constructors. | 58 // Common initialization code for the constructors. |
59 void Initialize(); | 59 void Initialize(); |
60 | 60 |
61 // For testing. | 61 // For testing. |
62 friend class ContentTestSuiteBaseListener; | 62 friend class ContentTestSuiteBaseListener; |
63 friend class TestBrowserThreadBundle; | 63 friend class TestBrowserThreadBundle; |
64 static void FlushThreadPoolHelper(); | 64 static void FlushThreadPoolHelperForTesting(); |
65 | 65 |
66 // The identifier of this thread. Only one thread can exist with a given | 66 // The identifier of this thread. Only one thread can exist with a given |
67 // identifier at a given time. | 67 // identifier at a given time. |
68 ID identifier_; | 68 ID identifier_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ | 73 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ |
OLD | NEW |