| 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_MAIN_LOOP_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 // Destroy parts_ before main_message_loop_ (required) and before other | 74 // Destroy parts_ before main_message_loop_ (required) and before other |
| 75 // classes constructed in content (but after main_thread_). | 75 // classes constructed in content (but after main_thread_). |
| 76 scoped_ptr<BrowserMainParts> parts_; | 76 scoped_ptr<BrowserMainParts> parts_; |
| 77 | 77 |
| 78 // Members initialized in |InitializeMainThread()| --------------------------- | 78 // Members initialized in |InitializeMainThread()| --------------------------- |
| 79 // This must get destroyed before other threads that are created in parts_. | 79 // This must get destroyed before other threads that are created in parts_. |
| 80 scoped_ptr<BrowserThreadImpl> main_thread_; | 80 scoped_ptr<BrowserThreadImpl> main_thread_; |
| 81 scoped_ptr<BrowserProcessSubThread> io_thread_; | 81 scoped_ptr<BrowserProcessSubThread> io_thread_; |
| 82 scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; |
| 82 scoped_ptr<BrowserProcessSubThread> file_thread_; | 83 scoped_ptr<BrowserProcessSubThread> file_thread_; |
| 83 scoped_ptr<BrowserProcessSubThread> db_thread_; | 84 scoped_ptr<BrowserProcessSubThread> db_thread_; |
| 84 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; | 85 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; |
| 85 scoped_ptr<BrowserProcessSubThread> cache_thread_; | 86 scoped_ptr<BrowserProcessSubThread> cache_thread_; |
| 86 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
| 87 scoped_ptr<BrowserProcessSubThread> web_socket_proxy_thread_; | 88 scoped_ptr<BrowserProcessSubThread> web_socket_proxy_thread_; |
| 88 #endif | 89 #endif |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 91 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace content | 94 } // namespace content |
| 94 | 95 |
| 95 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 96 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |