| Index: android_webview/lib/main/webview_main_delegate.h
|
| diff --git a/android_webview/lib/main/webview_main_delegate.h b/android_webview/lib/main/webview_main_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..67af5490972f22d84a74ec2b4031c165e0cdda57
|
| --- /dev/null
|
| +++ b/android_webview/lib/main/webview_main_delegate.h
|
| @@ -0,0 +1,37 @@
|
| +// 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 ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_
|
| +#define ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/app/chrome_main_delegate.h"
|
| +
|
| +namespace content {
|
| +class BrowserMainRunner;
|
| +} // namespace content
|
| +
|
| +namespace android_webview {
|
| +
|
| +// Android WebView override of ChromeMainDelegate.
|
| +// TODO(torne): this is temporary, should inherit from ContentMainDelegate
|
| +// instead and just reuse components from chrome/ that it needs.
|
| +class WebViewMainDelegate : public ChromeMainDelegate {
|
| + public:
|
| + WebViewMainDelegate();
|
| + virtual ~WebViewMainDelegate();
|
| +
|
| + virtual int RunProcess(
|
| + const std::string& process_type,
|
| + const content::MainFunctionParams& main_function_params) OVERRIDE;
|
| +
|
| + private:
|
| + scoped_ptr<content::BrowserMainRunner> browser_runner_;
|
| + DISALLOW_COPY_AND_ASSIGN(WebViewMainDelegate);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_
|
|
|