Chromium Code Reviews| Index: content/public/browser/browser_main_runner.h |
| =================================================================== |
| --- content/public/browser/browser_main_runner.h (revision 0) |
| +++ content/public/browser/browser_main_runner.h (revision 0) |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_RUNNER_H_ |
| +#define CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_RUNNER_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +struct MainFunctionParams; |
| + |
| +// This class is responsible for browser initialization, running and shutdown. |
| +class BrowserMainRunner { |
| + public: |
| + virtual ~BrowserMainRunner() {} |
| + |
| + // Create a new BrowserMainRunner object. |
| + static BrowserMainRunner* Create(); |
| + |
| + // Initialize all necessary browser state. The |parameters| values will be |
| + // copied. |
| + virtual int Initialize(const content::MainFunctionParams& parameters) = 0; |
| + |
| + // Perform the default run logic. |
| + virtual int Run() = 0; |
| + |
| + // Shut down the browser state. |
| + virtual void Shutdown() = 0; |
| +}; |
| + |
| +bool ExitedMainMessageLoop(); |
|
jam
2012/01/31 21:11:29
why not make this a static method on BrowserMainRu
|
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_BROWSER_MAIN_RUNNER_H_ |
| Property changes on: content\public\browser\browser_main_runner.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |