Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: content/browser/browser_main_loop.h

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More IWYU, missing link-time dependency for Chrome Frame. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/browser/browser_process_sub_thread.h"
13 14
14 class CommandLine; 15 class CommandLine;
15 class HighResolutionTimerManager; 16 class HighResolutionTimerManager;
16 class MessageLoop; 17 class MessageLoop;
17 18
18 namespace base { 19 namespace base {
19 class SystemMonitor; 20 class SystemMonitor;
20 } 21 }
21 22
22 namespace net { 23 namespace net {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // The BrowserParts fucntions for each part are called in the order added. 59 // The BrowserParts fucntions for each part are called in the order added.
59 // They are released (destroyed) in the reverse order. 60 // They are released (destroyed) in the reverse order.
60 std::vector<BrowserMainParts*> parts_list_; 61 std::vector<BrowserMainParts*> parts_list_;
61 62
62 // Members initialized in |MainMessageLoopStart()| --------------------------- 63 // Members initialized in |MainMessageLoopStart()| ---------------------------
63 scoped_ptr<MessageLoop> main_message_loop_; 64 scoped_ptr<MessageLoop> main_message_loop_;
64 scoped_ptr<base::SystemMonitor> system_monitor_; 65 scoped_ptr<base::SystemMonitor> system_monitor_;
65 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; 66 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_;
66 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 67 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
67 scoped_ptr<BrowserThreadImpl> main_thread_; 68 scoped_ptr<BrowserThreadImpl> main_thread_;
69 scoped_ptr<BrowserProcessSubThread> io_thread_;
70 scoped_ptr<BrowserProcessSubThread> file_thread_;
71 scoped_ptr<BrowserProcessSubThread> db_thread_;
72 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_;
73 scoped_ptr<BrowserProcessSubThread> cache_thread_;
74 #if defined(OS_CHROMEOS)
75 scoped_ptr<BrowserProcessSubThread> web_socket_proxy_thread_;
76 #endif
68 77
69 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 78 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
70 }; 79 };
71 80
72 } // namespace content 81 } // namespace content
73 82
74 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 83 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698