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

Side by Side Diff: chrome/browser/chrome_browser_parts_aura.h

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. 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 CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/browser_main_parts.h" 10 #include "content/public/browser/browser_main_parts.h"
11 #include "content/public/browser/browser_thread.h"
12
13 namespace content {
14 class IOThreadDelegate;
15 }
11 16
12 class ChromeBrowserPartsAura : public content::BrowserMainParts { 17 class ChromeBrowserPartsAura : public content::BrowserMainParts {
13 public: 18 public:
14 ChromeBrowserPartsAura(); 19 ChromeBrowserPartsAura();
15 20
16 virtual void PreEarlyInitialization() OVERRIDE; 21 virtual void PreEarlyInitialization() OVERRIDE;
17 virtual void PostEarlyInitialization() OVERRIDE; 22 virtual void PostEarlyInitialization() OVERRIDE;
18 virtual void ToolkitInitialized() OVERRIDE; 23 virtual void ToolkitInitialized() OVERRIDE;
19 virtual void PreMainMessageLoopStart() OVERRIDE; 24 virtual void PreMainMessageLoopStart() OVERRIDE;
20 virtual void PostMainMessageLoopStart() OVERRIDE; 25 virtual void PostMainMessageLoopStart() OVERRIDE;
21 virtual void PreMainMessageLoopRun() OVERRIDE; 26 virtual content::IOThreadDelegate* PreMainMessageLoopRun() OVERRIDE;
27 virtual void PreMainMessageLoopRunThreadsCreated() OVERRIDE {}
22 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 28 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
23 virtual void PostMainMessageLoopRun() OVERRIDE; 29 virtual void PostMainMessageLoopRun() OVERRIDE;
30 virtual void PreStopThread(BrowserThread::ID identifier) OVERRIDE {}
31 virtual void PostStopThread(BrowserThread::ID identifier) OVERRIDE {}
32 virtual void FinalCleanup() OVERRIDE {}
24 33
25 private: 34 private:
26 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPartsAura); 35 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPartsAura);
27 }; 36 };
28 37
29 #endif // CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_ 38 #endif // CHROME_BROWSER_CHROME_BROWSER_PARTS_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698