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