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

Side by Side Diff: content/browser/download/save_package.h

Issue 22920005: Refactor MHTMLGenerator to allow getting sending the data to a file descriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void GetSaveInfo(); 122 void GetSaveInfo();
123 123
124 private: 124 private:
125 friend class base::RefCountedThreadSafe<SavePackage>; 125 friend class base::RefCountedThreadSafe<SavePackage>;
126 126
127 void InitWithDownloadItem( 127 void InitWithDownloadItem(
128 const SavePackageDownloadCreatedCallback& download_created_callback, 128 const SavePackageDownloadCreatedCallback& download_created_callback,
129 DownloadItemImpl* item); 129 DownloadItemImpl* item);
130 130
131 // Callback for WebContents::GenerateMHTML(). 131 // Callback for WebContents::GenerateMHTML().
132 void OnMHTMLGenerated(const base::FilePath& path, int64 size); 132 void OnMHTMLGenerated(int64 size);
133 133
134 // For testing only. 134 // For testing only.
135 SavePackage(WebContents* web_contents, 135 SavePackage(WebContents* web_contents,
136 const base::FilePath& file_full_path, 136 const base::FilePath& file_full_path,
137 const base::FilePath& directory_full_path); 137 const base::FilePath& directory_full_path);
138 138
139 virtual ~SavePackage(); 139 virtual ~SavePackage();
140 140
141 // Notes from Init() above applies here as well. 141 // Notes from Init() above applies here as well.
142 void InternalInit(); 142 void InternalInit();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 friend class SavePackageTest; 331 friend class SavePackageTest;
332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); 332 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames);
333 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); 333 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename);
334 334
335 DISALLOW_COPY_AND_ASSIGN(SavePackage); 335 DISALLOW_COPY_AND_ASSIGN(SavePackage);
336 }; 336 };
337 337
338 } // namespace content 338 } // namespace content
339 339
340 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 340 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698