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

Unified Diff: content/app/android/download_main.cc

Issue 1622743005: Introduce background Download process to android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build Created 4 years, 10 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/app/BUILD.gn ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/android/download_main.cc
diff --git a/content/app/android/download_main.cc b/content/app/android/download_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3280e29a3cca159a5ad5ca7a70b0211998b41674
--- /dev/null
+++ b/content/app/android/download_main.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 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.
+
+#include "base/message_loop/message_loop.h"
+#include "base/threading/platform_thread.h"
+#include "content/public/common/main_function_params.h"
+
+namespace content {
+
+// Mainline routine for running as the download process.
+int DownloadMain(const MainFunctionParams& parameters) {
+ // The main message loop of the utility process.
+ base::MessageLoop main_message_loop;
+ base::PlatformThread::SetName("CrDownloadMain");
+ base::MessageLoop::current()->Run();
+
+ return 0;
+}
+
+} // namespace content
« no previous file with comments | « content/app/BUILD.gn ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698