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 // Contains functions used by BrowserMain() that are gtk-specific. | 5 // Contains functions used by BrowserMain() that are gtk-specific. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ | 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ |
8 #define CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ | 8 #define CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/browser_main_parts.h" | 13 #include "content/public/browser/browser_main_parts.h" |
13 | 14 |
| 15 namespace content { |
| 16 class IOThreadDelegate; |
| 17 } |
| 18 |
14 class ChromeBrowserPartsGtk : public content::BrowserMainParts { | 19 class ChromeBrowserPartsGtk : public content::BrowserMainParts { |
15 public: | 20 public: |
16 ChromeBrowserPartsGtk(); | 21 ChromeBrowserPartsGtk(); |
17 | 22 |
18 virtual void PreEarlyInitialization() OVERRIDE; | 23 virtual void PreEarlyInitialization() OVERRIDE; |
19 virtual void PostEarlyInitialization() OVERRIDE; | 24 virtual void PostEarlyInitialization() OVERRIDE; |
| 25 virtual void PreMainMessageLoopStart() OVERRIDE; |
20 virtual void ToolkitInitialized() OVERRIDE; | 26 virtual void ToolkitInitialized() OVERRIDE; |
21 virtual void PreMainMessageLoopStart() OVERRIDE; | |
22 virtual void PostMainMessageLoopStart() OVERRIDE; | 27 virtual void PostMainMessageLoopStart() OVERRIDE; |
23 virtual void PreMainMessageLoopRun() OVERRIDE; | 28 virtual content::IOThreadDelegate* PreMainMessageLoopRun() OVERRIDE; |
| 29 virtual void PreMainMessageLoopRunThreadsCreated() OVERRIDE; |
24 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 30 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
25 virtual void PostMainMessageLoopRun() OVERRIDE; | 31 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 32 virtual void PreStopThread(content::BrowserThread::ID) OVERRIDE; |
| 33 virtual void PostStopThread(content::BrowserThread::ID) OVERRIDE; |
| 34 virtual void FinalCleanup() OVERRIDE; |
26 | 35 |
27 static void ShowMessageBox(const char* message); | 36 static void ShowMessageBox(const char* message); |
28 | 37 |
29 private: | 38 private: |
30 void DetectRunningAsRoot(); | 39 void DetectRunningAsRoot(); |
31 }; | 40 }; |
32 | 41 |
33 #endif // CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ | 42 #endif // CHROME_BROWSER_CHROME_BROWSER_PARTS_GTK_H_ |
OLD | NEW |