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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/synchronization/lock.h" | |
10 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
11 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 class CONTENT_EXPORT BrowserThreadImpl | 15 class CONTENT_EXPORT BrowserThreadImpl |
17 : public BrowserThread, public base::Thread { | 16 : public BrowserThread, public base::Thread { |
18 public: | 17 public: |
19 // Construct a BrowserThreadImpl with the supplied identifier. It is an error | 18 // Construct a BrowserThreadImpl with the supplied identifier. It is an error |
(...skipping 28 matching lines...) Expand all Loading... |
48 void Initialize(); | 47 void Initialize(); |
49 | 48 |
50 // The identifier of this thread. Only one thread can exist with a given | 49 // The identifier of this thread. Only one thread can exist with a given |
51 // identifier at a given time. | 50 // identifier at a given time. |
52 ID identifier_; | 51 ID identifier_; |
53 }; | 52 }; |
54 | 53 |
55 } // namespace content | 54 } // namespace content |
56 | 55 |
57 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ | 56 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ |
OLD | NEW |