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

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

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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) 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_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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/browser_process_sub_thread.h" 10 #include "content/browser/browser_process_sub_thread.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 class HighResolutionTimerManager; 13 class HighResolutionTimerManager;
14 class MessageLoop; 14 class MessageLoop;
15 class SystemMessageWindowWin;
16 15
17 namespace base { 16 namespace base {
18 class SystemMonitor; 17 class SystemMonitor;
19 } 18 }
20 19
21 namespace media { 20 namespace media {
22 class AudioManager; 21 class AudioManager;
23 } 22 }
24 23
25 namespace net { 24 namespace net {
26 class NetworkChangeNotifier; 25 class NetworkChangeNotifier;
27 } 26 }
28 27
29 namespace content { 28 namespace content {
30 class BrowserMainParts; 29 class BrowserMainParts;
31 class BrowserOnlineStateObserver; 30 class BrowserOnlineStateObserver;
32 class BrowserShutdownImpl; 31 class BrowserShutdownImpl;
33 class BrowserThreadImpl; 32 class BrowserThreadImpl;
34 class MediaStreamManager; 33 class MediaStreamManager;
35 class ResourceDispatcherHostImpl; 34 class ResourceDispatcherHostImpl;
36 class SpeechRecognitionManagerImpl; 35 class SpeechRecognitionManagerImpl;
36 class SystemMessageWindowWin;
37 class WebKitThread; 37 class WebKitThread;
38 struct MainFunctionParams; 38 struct MainFunctionParams;
39 39
40 #if defined(OS_LINUX) 40 #if defined(OS_LINUX)
41 class DeviceMonitorLinux; 41 class DeviceMonitorLinux;
42 #elif defined(OS_MACOSX) 42 #elif defined(OS_MACOSX)
43 class DeviceMonitorMac; 43 class DeviceMonitorMac;
44 #endif 44 #endif
45 45
46 // Implements the main browser loop stages called from BrowserMainRunner. 46 // Implements the main browser loop stages called from BrowserMainRunner.
47 // See comments in browser_main_parts.h for additional info. 47 // See comments in browser_main_parts.h for additional info.
48 // All functions are to be called only on the UI thread unless otherwise noted. 48 // All functions are to be called only on the UI thread unless otherwise noted.
49 class BrowserMainLoop { 49 class BrowserMainLoop {
50 public: 50 public:
51 explicit BrowserMainLoop(const content::MainFunctionParams& parameters); 51 explicit BrowserMainLoop(const MainFunctionParams& parameters);
52 virtual ~BrowserMainLoop(); 52 virtual ~BrowserMainLoop();
53 53
54 void Init(); 54 void Init();
55 55
56 void EarlyInitialization(); 56 void EarlyInitialization();
57 void InitializeToolkit(); 57 void InitializeToolkit();
58 void MainMessageLoopStart(); 58 void MainMessageLoopStart();
59 59
60 // Create all secondary threads. 60 // Create all secondary threads.
61 void CreateThreads(); 61 void CreateThreads();
(...skipping 16 matching lines...) Expand all
78 friend class BrowserShutdownImpl; 78 friend class BrowserShutdownImpl;
79 79
80 void InitializeMainThread(); 80 void InitializeMainThread();
81 81
82 // Called right after the browser threads have been started. 82 // Called right after the browser threads have been started.
83 void BrowserThreadsStarted(); 83 void BrowserThreadsStarted();
84 84
85 void MainMessageLoopRun(); 85 void MainMessageLoopRun();
86 86
87 // Members initialized on construction --------------------------------------- 87 // Members initialized on construction ---------------------------------------
88 const content::MainFunctionParams& parameters_; 88 const MainFunctionParams& parameters_;
89 const CommandLine& parsed_command_line_; 89 const CommandLine& parsed_command_line_;
90 int result_code_; 90 int result_code_;
91 91
92 // Members initialized in |MainMessageLoopStart()| --------------------------- 92 // Members initialized in |MainMessageLoopStart()| ---------------------------
93 scoped_ptr<MessageLoop> main_message_loop_; 93 scoped_ptr<MessageLoop> main_message_loop_;
94 scoped_ptr<base::SystemMonitor> system_monitor_; 94 scoped_ptr<base::SystemMonitor> system_monitor_;
95 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; 95 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_;
96 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 96 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
97 scoped_ptr<media::AudioManager> audio_manager_; 97 scoped_ptr<media::AudioManager> audio_manager_;
98 scoped_ptr<MediaStreamManager> media_stream_manager_; 98 scoped_ptr<MediaStreamManager> media_stream_manager_;
(...skipping 29 matching lines...) Expand all
128 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; 128 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_;
129 scoped_ptr<BrowserProcessSubThread> cache_thread_; 129 scoped_ptr<BrowserProcessSubThread> cache_thread_;
130 scoped_ptr<BrowserProcessSubThread> io_thread_; 130 scoped_ptr<BrowserProcessSubThread> io_thread_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 132 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
133 }; 133 };
134 134
135 } // namespace content 135 } // namespace content
136 136
137 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 137 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698