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

Unified Diff: android_webview/lib/main/webview_main_delegate.h

Issue 10825155: Build target for Android WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Shuffle files about a bit and address comments Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698