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

Side by Side Diff: content/renderer/mhtml_generator.cc

Issue 8788003: Update includes to new header locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/intents_dispatcher.cc ('k') | content/renderer/notification_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/WebCString.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/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 MHTMLGenerator::MHTMLGenerator(RenderViewImpl* render_view) 13 MHTMLGenerator::MHTMLGenerator(RenderViewImpl* render_view)
14 : content::RenderViewObserver(render_view), 14 : content::RenderViewObserver(render_view),
15 file_(base::kInvalidPlatformFileValue) { 15 file_(base::kInvalidPlatformFileValue) {
16 } 16 }
17 17
18 MHTMLGenerator::~MHTMLGenerator() { 18 MHTMLGenerator::~MHTMLGenerator() {
19 } 19 }
20 20
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 std::min(mhtml.length() - total_bytes_written, chunk_size); 56 std::min(mhtml.length() - total_bytes_written, chunk_size);
57 int bytes_written = base::WritePlatformFile(file_, total_bytes_written, 57 int bytes_written = base::WritePlatformFile(file_, total_bytes_written,
58 data + total_bytes_written, 58 data + total_bytes_written,
59 copy_size); 59 copy_size);
60 if (bytes_written == -1) 60 if (bytes_written == -1)
61 return -1; 61 return -1;
62 total_bytes_written += bytes_written; 62 total_bytes_written += bytes_written;
63 } 63 }
64 return total_bytes_written; 64 return total_bytes_written;
65 } 65 }
OLDNEW
« no previous file with comments | « content/renderer/intents_dispatcher.cc ('k') | content/renderer/notification_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698