Chromium Code Reviews| 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..4f33b359ea0565238df41f5f89fe18d76c3b8a92 |
| --- /dev/null |
| +++ b/content/app/android/download_main.cc |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
no sievers
2016/02/03 22:46:51
nit: 2016
qinmin
2016/02/03 23:37:36
Done.
|
| +// 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 |