OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
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: | |
no sievers
2016/01/27 00:33:36
This class is unused.
qinmin
2016/01/28 00:58:31
This is the entry point to create the download pro
| |
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_ | |
OLD | NEW |