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

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

Issue 10069014: Save Page As MHTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 8 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 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 content::SavePageType save_type() const { return save_type_; } 111 content::SavePageType save_type() const { return save_type_; }
112 int tab_id() const { return tab_id_; } 112 int tab_id() const { return tab_id_; }
113 int id() const { return unique_id_; } 113 int id() const { return unique_id_; }
114 content::WebContents* web_contents() const; 114 content::WebContents* web_contents() const;
115 115
116 void GetSaveInfo(); 116 void GetSaveInfo();
117 117
118 private: 118 private:
119 friend class base::RefCountedThreadSafe<SavePackage>; 119 friend class base::RefCountedThreadSafe<SavePackage>;
120 120
121 void MHTMLGenerated(const FilePath& path, int64 size);
achuithb 2012/04/12 19:40:02 Please add a comment here saying that this is a ca
benjhayden 2012/04/13 20:44:11 Done.
122
121 // For testing only. 123 // For testing only.
122 SavePackage(content::WebContents* web_contents, 124 SavePackage(content::WebContents* web_contents,
123 const FilePath& file_full_path, 125 const FilePath& file_full_path,
124 const FilePath& directory_full_path); 126 const FilePath& directory_full_path);
125 127
126 virtual ~SavePackage(); 128 virtual ~SavePackage();
127 129
128 // Notes from Init() above applies here as well. 130 // Notes from Init() above applies here as well.
129 void InternalInit(); 131 void InternalInit();
130 132
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool wrote_to_failed_file_; 309 bool wrote_to_failed_file_;
308 310
309 friend class SavePackageTest; 311 friend class SavePackageTest;
310 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); 312 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames);
311 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); 313 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename);
312 314
313 DISALLOW_COPY_AND_ASSIGN(SavePackage); 315 DISALLOW_COPY_AND_ASSIGN(SavePackage);
314 }; 316 };
315 317
316 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 318 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698