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

Unified Diff: content/public/app/content_main.h

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/app/content_main.h
===================================================================
--- content/public/app/content_main.h (revision 257432)
+++ content/public/app/content_main.h (working copy)
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include "base/callback_forward.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
@@ -23,15 +24,15 @@
struct ContentMainParams {
explicit ContentMainParams(ContentMainDelegate* delegate)
- : delegate(delegate)
+ : delegate(delegate),
#if defined(OS_WIN)
- , instance(NULL),
- sandbox_info(NULL)
+ instance(NULL),
+ sandbox_info(NULL),
#elif !defined(OS_ANDROID)
- , argc(0),
- argv(NULL)
+ argc(0),
+ argv(NULL),
#endif
- {
+ ui_task(NULL) {
}
ContentMainDelegate* delegate;
@@ -46,6 +47,10 @@
int argc;
const char** argv;
#endif
+
+ // Used by browser_tests. If non-null BrowserMain schedules this task to run
+ // on the MessageLoop. It's owned by the test code.
+ base::Closure* ui_task;
};
#if defined(OS_ANDROID)
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698