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_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ |
6 #define CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ | 6 #define CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 explicit BrowserProcessSubThread(BrowserThread::ID identifier); | 30 explicit BrowserProcessSubThread(BrowserThread::ID identifier); |
31 virtual ~BrowserProcessSubThread(); | 31 virtual ~BrowserProcessSubThread(); |
32 | 32 |
33 protected: | 33 protected: |
34 virtual void Init() OVERRIDE; | 34 virtual void Init() OVERRIDE; |
35 virtual void CleanUp() OVERRIDE; | 35 virtual void CleanUp() OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 // These methods encapsulate cleanup that needs to happen on the IO thread | 38 // These methods encapsulate cleanup that needs to happen on the IO thread |
39 // before/after we call the embedder's CleanUp function. | 39 // before we call the embedder's CleanUp function. |
40 void IOThreadPreCleanUp(); | 40 void IOThreadPreCleanUp(); |
41 void IOThreadPostCleanUp(); | |
42 | 41 |
43 // Each specialized thread has its own notification service. | 42 // Each specialized thread has its own notification service. |
44 // Note: We don't use scoped_ptr because the destructor runs on the wrong | 43 // Note: We don't use scoped_ptr because the destructor runs on the wrong |
45 // thread. | 44 // thread. |
46 NotificationService* notification_service_; | 45 NotificationService* notification_service_; |
47 | 46 |
48 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread); | 47 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread); |
49 }; | 48 }; |
50 | 49 |
51 } // namespace content | 50 } // namespace content |
52 | 51 |
53 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ | 52 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ |
OLD | NEW |