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

Unified Diff: chrome/app/android/chrome_main_delegate_android.h

Issue 10918113: Add initial Chromium TestShell support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment for RegisterApplicationNativeMethods Created 8 years, 3 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: chrome/app/android/chrome_main_delegate_android.h
diff --git a/chrome/app/android/chrome_main_delegate_android.h b/chrome/app/android/chrome_main_delegate_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..59664d78a185fdbd4d3b50fdf72436a2c51abb19
--- /dev/null
+++ b/chrome/app/android/chrome_main_delegate_android.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 CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
+#define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
+
+#include "chrome/app/chrome_main_delegate.h"
+#include "content/public/browser/browser_main_runner.h"
+
+// Android override of ChromeMainDelegate
+class ChromeMainDelegateAndroid : public ChromeMainDelegate {
+ public:
+ ChromeMainDelegateAndroid();
+ virtual ~ChromeMainDelegateAndroid();
+
+ // Set up the JNI bindings. Tie the Java methods with their native
+ // counterparts. Override to add more JNI bindings.
+ virtual bool RegisterApplicationNativeMethods(JNIEnv* env);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid);
Yaron 2012/09/11 00:01:28 Nit: move to bottom of class definition.
David Trainor- moved to gerrit 2012/09/11 00:25:04 Done.
+
+ virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
+
+ virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
+
+ virtual int RunProcess(
+ const std::string& process_type,
+ const content::MainFunctionParams& main_function_params) OVERRIDE;
+
+ scoped_ptr<content::BrowserMainRunner> browser_runner_;
+};
+
+#endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698