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

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

Issue 9190018: Support sharing of ContentMain and BrowserMain code with embedded use cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_RUNNER_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_RUNNER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 struct MainFunctionParams;
15
16 // This class is responsible for browser initialization, running and shutdown.
17 class BrowserMainRunner {
18 public:
19 virtual ~BrowserMainRunner() {}
20
21 // Create a new BrowserMainRunner object.
22 static BrowserMainRunner* CreateMainRunner();
23
24 // Initialize all necessary browser state. The |parameters| values will be
25 // copied.
26 virtual int Initialize(const content::MainFunctionParams& parameters) = 0;
27
28 // Perform the default run logic.
29 virtual int Run() = 0;
30
31 // Shut down the browser state.
32 virtual void Shutdown() = 0;
33 };
34
35 bool ExitedMainMessageLoop();
36
37 } // namespace content
38
39 #endif // CONTENT_BROWSER_BROWSER_MAIN_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698