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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // ... | 261 // ... |
262 // private: | 262 // private: |
263 // friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 263 // friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
264 // friend class base::DeleteHelper<Foo>; | 264 // friend class base::DeleteHelper<Foo>; |
265 // | 265 // |
266 // ~Foo(); | 266 // ~Foo(); |
267 struct DeleteOnUIThread : public DeleteOnThread<UI> { }; | 267 struct DeleteOnUIThread : public DeleteOnThread<UI> { }; |
268 struct DeleteOnIOThread : public DeleteOnThread<IO> { }; | 268 struct DeleteOnIOThread : public DeleteOnThread<IO> { }; |
269 struct DeleteOnFileThread : public DeleteOnThread<FILE> { }; | 269 struct DeleteOnFileThread : public DeleteOnThread<FILE> { }; |
270 struct DeleteOnDBThread : public DeleteOnThread<DB> { }; | 270 struct DeleteOnDBThread : public DeleteOnThread<DB> { }; |
271 struct DeleteOnWebKitThread : public DeleteOnThread<WEBKIT_DEPRECATED> { }; | |
272 | 271 |
273 private: | 272 private: |
274 friend class BrowserThreadImpl; | 273 friend class BrowserThreadImpl; |
275 | 274 |
276 BrowserThread() {} | 275 BrowserThread() {} |
277 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 276 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
278 }; | 277 }; |
279 | 278 |
280 } // namespace content | 279 } // namespace content |
281 | 280 |
282 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 281 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
OLD | NEW |