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

Side by Side Diff: content/public/browser/browser_main_parts.h

Issue 9372027: Revert 121236 - Support sharing of ContentMain and BrowserMain code with embedded use cases (try ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 months 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
« no previous file with comments | « content/public/app/content_main_runner.h ('k') | content/public/browser/browser_main_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 12
13 class MessageLoop;
14
15 namespace content { 13 namespace content {
16 14
17 // This class contains different "stages" to be executed by |BrowserMain()|, 15 // This class contains different "stages" to be executed by |BrowserMain()|,
18 // Each stage is represented by a single BrowserMainParts method, called from 16 // Each stage is represented by a single BrowserMainParts method, called from
19 // the corresponding method in |BrowserMainLoop| (e.g., EarlyInitialization()) 17 // the corresponding method in |BrowserMainLoop| (e.g., EarlyInitialization())
20 // which does the following: 18 // which does the following:
21 // - calls a method (e.g., "PreEarlyInitialization()") which implements 19 // - calls a method (e.g., "PreEarlyInitialization()") which implements
22 // platform / tookit specific code for that stage. 20 // platform / tookit specific code for that stage.
23 // - calls various methods for things common to all platforms (for that stage). 21 // - calls various methods for things common to all platforms (for that stage).
24 // - calls a method (e.g., "PostEarlyInitialization()") for platform-specific 22 // - calls a method (e.g., "PostEarlyInitialization()") for platform-specific
(...skipping 30 matching lines...) Expand all
55 public: 53 public:
56 BrowserMainParts() {} 54 BrowserMainParts() {}
57 virtual ~BrowserMainParts() {} 55 virtual ~BrowserMainParts() {}
58 56
59 virtual void PreEarlyInitialization() = 0; 57 virtual void PreEarlyInitialization() = 0;
60 58
61 virtual void PostEarlyInitialization() = 0; 59 virtual void PostEarlyInitialization() = 0;
62 60
63 virtual void PreMainMessageLoopStart() = 0; 61 virtual void PreMainMessageLoopStart() = 0;
64 62
65 // Return the main message loop object or NULL to use the default message
66 // loop object.
67 virtual MessageLoop* GetMainMessageLoop() = 0;
68
69 virtual void PostMainMessageLoopStart() = 0; 63 virtual void PostMainMessageLoopStart() = 0;
70 64
71 // Allows an embedder to do any extra toolkit initialization. 65 // Allows an embedder to do any extra toolkit initialization.
72 virtual void ToolkitInitialized() = 0; 66 virtual void ToolkitInitialized() = 0;
73 67
74 // Called just before any child threads owned by the content 68 // Called just before any child threads owned by the content
75 // framework are created. 69 // framework are created.
76 // 70 //
77 // The main message loop has been started at this point (but has not 71 // The main message loop has been started at this point (but has not
78 // been run), and the toolkit has been initialized. Returns the error code 72 // been run), and the toolkit has been initialized. Returns the error code
(...skipping 17 matching lines...) Expand all
96 // stopped and destroyed. 90 // stopped and destroyed.
97 virtual void PostDestroyThreads() = 0; 91 virtual void PostDestroyThreads() = 0;
98 92
99 private: 93 private:
100 DISALLOW_COPY_AND_ASSIGN(BrowserMainParts); 94 DISALLOW_COPY_AND_ASSIGN(BrowserMainParts);
101 }; 95 };
102 96
103 } // namespace content 97 } // namespace content
104 98
105 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_ 99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « content/public/app/content_main_runner.h ('k') | content/public/browser/browser_main_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698