OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | |
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "base/command_line.h" | |
jam
2011/10/25 06:11:28
nit: most of these headers aren't referenced in th
stevenjb
2011/10/25 19:21:18
Done.
| |
11 #include "base/message_loop.h" | |
12 #include "base/system_monitor/system_monitor.h" | |
13 #include "content/browser/browser_thread.h" | |
14 #include "content/common/hi_res_timer_manager.h" | |
15 #include "content/common/main_function_params.h" | |
16 #include "net/base/network_change_notifier.h" | |
17 | |
18 namespace content { | |
19 | |
20 // Implements the main browser loop stages called from |BrowserMain()|. | |
21 // See comments in browser_main_parts.h for additional info. | |
22 class BrowserMainLoop { | |
jam
2011/10/25 06:11:28
sorry maybe I wasn't clear. I had meant just putti
stevenjb
2011/10/25 16:24:34
I generally prefer to keep implementation details
jam
2011/10/25 16:33:59
hmm I haven't encountered this anywhere else in ch
stevenjb
2011/10/25 19:21:18
OK, I will change this.
| |
23 public: | |
24 static BrowserMainLoop* CreateInstance( | |
25 const MainFunctionParams& parameters); | |
26 | |
27 BrowserMainLoop() {} | |
28 virtual ~BrowserMainLoop() {} | |
29 | |
30 // Parts to be called by |BrowserMain()|. | |
31 virtual void EarlyInitialization() = 0; | |
32 virtual void InitializeToolkit() = 0; | |
33 virtual void MainMessageLoopStart() = 0; | |
34 virtual void RunMainMessageLoopParts( | |
35 bool* completed_main_message_loop) = 0; | |
36 virtual void MainMessageLoopRun() = 0; | |
37 | |
38 virtual int GetResultCode() const = 0; | |
39 | |
40 private: | |
41 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | |
42 }; | |
43 | |
44 } // namespace content | |
45 | |
46 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | |
OLD | NEW |