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

Unified Diff: android_webview/lib/webview_main_delegate.h

Issue 10825155: Build target for Android WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/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_

Powered by Google App Engine
This is Rietveld 408576698