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

Side by Side Diff: content/browser/android/download_process_host.h

Issue 1622743005: Introduce background Download process to android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
svaldez 2016/01/25 15:33:43 2016, same with any other dates.
qinmin 2016/01/25 22:48:23 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_ANDROID_DOWNLOAD_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_ANDROID_DOWNLOAD_PROCESS_HOST_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/browser/browser_child_process_host.h"
10 #include "content/public/browser/browser_child_process_host_delegate.h"
11
12 namespace content {
13
14 class DownloadProcessHost : public content::BrowserChildProcessHostDelegate {
15 public:
16 DownloadProcessHost();
17 ~DownloadProcessHost() override;
18
19 // Starts a process if necessary. Returns true if it succeeded or a process
20 // has already been started.
21 bool StartProcess();
22
23 private:
24 // content::BrowserChildProcessHostDelegate:
25 bool OnMessageReceived(const IPC::Message& message) override;
26 void OnProcessLaunchFailed() override;
27 void OnProcessCrashed(int exit_code) override;
28 void OnProcessLaunched() override;
29
30 bool started_;
31
32 scoped_ptr<content::BrowserChildProcessHost> process_;
33
34 DISALLOW_COPY_AND_ASSIGN(DownloadProcessHost);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698