Chromium Code Reviews| Index: android_webview/lib/webview_main_delegate.h |
| diff --git a/android_webview/lib/webview_main_delegate.h b/android_webview/lib/webview_main_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ce00bb8af7606036b146a41f0c0787ff3ea654ec |
| --- /dev/null |
| +++ b/android_webview/lib/webview_main_delegate.h |
| @@ -0,0 +1,35 @@ |
| +// 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_WEBVIEW_MAIN_DELEGATE_H_ |
| +#define ANDROID_WEBVIEW_LIB_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. |
|
Jói
2012/08/02 15:20:00
I think there should be a comment here, for the be
Torne
2012/08/03 10:31:36
Done.
|
| +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_WEBVIEW_MAIN_DELEGATE_H_ |