OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/download/mhtml_generation_manager.h" | 5 #include "content/browser/download/mhtml_generation_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 int process_id() { return process_id_; } | 29 int process_id() { return process_id_; } |
30 int routing_id() { return routing_id_; } | 30 int routing_id() { return routing_id_; } |
31 | 31 |
32 GenerateMHTMLCallback callback() { return callback_; } | 32 GenerateMHTMLCallback callback() { return callback_; } |
33 void set_callback(GenerateMHTMLCallback callback) { callback_ = callback; } | 33 void set_callback(GenerateMHTMLCallback callback) { callback_ = callback; } |
34 | 34 |
35 // RenderProcessHostObserver: | 35 // RenderProcessHostObserver: |
36 virtual void RenderProcessExited(RenderProcessHost* host, | 36 virtual void RenderProcessExited(RenderProcessHost* host, |
37 base::ProcessHandle handle, | 37 base::ProcessHandle handle, |
38 base::TerminationStatus status, | 38 base::TerminationStatus status, |
39 int exit_code) OVERRIDE; | 39 int exit_code) override; |
40 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) OVERRIDE; | 40 virtual void RenderProcessHostDestroyed(RenderProcessHost* host) override; |
41 | 41 |
42 | 42 |
43 private: | 43 private: |
44 // The handle to the file the MHTML is saved to for the browser process. | 44 // The handle to the file the MHTML is saved to for the browser process. |
45 base::File browser_file_; | 45 base::File browser_file_; |
46 | 46 |
47 // The IDs mapping to a specific contents. | 47 // The IDs mapping to a specific contents. |
48 int process_id_; | 48 int process_id_; |
49 int routing_id_; | 49 int routing_id_; |
50 | 50 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 ++it) { | 232 ++it) { |
233 if (it->second == job) { | 233 if (it->second == job) { |
234 JobFinished(it->first, -1); | 234 JobFinished(it->first, -1); |
235 return; | 235 return; |
236 } | 236 } |
237 } | 237 } |
238 NOTREACHED(); | 238 NOTREACHED(); |
239 } | 239 } |
240 | 240 |
241 } // namespace content | 241 } // namespace content |
OLD | NEW |