| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_BROWSER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // The identifier of this thread. Only one thread can exist with a given | 236 // The identifier of this thread. Only one thread can exist with a given |
| 237 // identifier at a given time. | 237 // identifier at a given time. |
| 238 // TODO(joi): Move to BrowserThreadImpl, and make constructors here | 238 // TODO(joi): Move to BrowserThreadImpl, and make constructors here |
| 239 // do-nothing. | 239 // do-nothing. |
| 240 ID identifier_; | 240 ID identifier_; |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 // Temporary escape hatch for chrome/ to construct BrowserThread, | 243 // Temporary escape hatch for chrome/ to construct BrowserThread, |
| 244 // until we make content/ construct its own threads. | 244 // until we make content/ construct its own threads. |
| 245 class DeprecatedBrowserThread : public BrowserThread { | 245 class CONTENT_EXPORT DeprecatedBrowserThread : public BrowserThread { |
| 246 public: | 246 public: |
| 247 explicit DeprecatedBrowserThread(BrowserThread::ID identifier); | 247 explicit DeprecatedBrowserThread(BrowserThread::ID identifier); |
| 248 DeprecatedBrowserThread(BrowserThread::ID identifier, | 248 DeprecatedBrowserThread(BrowserThread::ID identifier, |
| 249 MessageLoop* message_loop); | 249 MessageLoop* message_loop); |
| 250 virtual ~DeprecatedBrowserThread(); | 250 virtual ~DeprecatedBrowserThread(); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 253 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| OLD | NEW |