OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/mhtml_generator.h" | 5 #include "content/renderer/mhtml_generator.h" |
6 | 6 |
7 #include "base/platform_file.h" | 7 #include "base/platform_file.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "content/renderer/render_view_impl.h" | 9 #include "content/renderer/render_view_impl.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 MHTMLGenerator::MHTMLGenerator(RenderViewImpl* render_view) | 15 MHTMLGenerator::MHTMLGenerator(RenderViewImpl* render_view) |
16 : RenderViewObserver(render_view), | 16 : RenderViewObserver(render_view), |
17 file_(base::kInvalidPlatformFileValue) { | 17 file_(base::kInvalidPlatformFileValue) { |
18 } | 18 } |
19 | 19 |
20 MHTMLGenerator::~MHTMLGenerator() { | 20 MHTMLGenerator::~MHTMLGenerator() { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 data + total_bytes_written, | 60 data + total_bytes_written, |
61 copy_size); | 61 copy_size); |
62 if (bytes_written == -1) | 62 if (bytes_written == -1) |
63 return -1; | 63 return -1; |
64 total_bytes_written += bytes_written; | 64 total_bytes_written += bytes_written; |
65 } | 65 } |
66 return total_bytes_written; | 66 return total_bytes_written; |
67 } | 67 } |
68 | 68 |
69 } // namespace content | 69 } // namespace content |
OLD | NEW |