OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_MHTML_EXTRA_DATA_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_MHTML_EXTRA_DATA_H_ | |
7 | |
8 #include "base/supports_user_data.h" | |
9 #include "content/public/browser/web_contents.h" | |
10 | |
11 namespace content { | |
12 | |
13 // Interface class for adding an extra part to MHTML when doing MHTML | |
14 // generation. To use it, get it from the web contents with FromWebContents, | |
15 // then call StashMHTMLPartForAdditionToPage to add a new part. | |
fgorski
2017/03/28 17:01:12
please rename
Pete Williamson
2017/03/28 18:01:58
Done.
| |
16 class CONTENT_EXPORT MHTMLExtraData : public base::SupportsUserData::Data { | |
17 public: | |
18 // Retrieves the extra data from the web contents. | |
19 static MHTMLExtraData* FromWebContents(WebContents* contents); | |
20 | |
21 // Construct and save an extra MHTML part which will be added to the MHTML | |
fgorski
2017/03/28 17:01:12
I believe this had better documentation in impleme
Pete Williamson
2017/03/28 18:01:58
Moved comments from the interface to here.
| |
22 // when we generate the page with MHTMLGenerationManager::SaveMHTML(). | |
23 virtual void StashMHTMLPartForAdditionToPage( | |
fgorski
2017/03/28 17:01:12
please rename
Pete Williamson
2017/03/28 18:01:58
Done.
| |
24 const std::string& content_type, | |
25 const std::string& content_location, | |
26 const std::string& body) = 0; | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_PUBLIC_BROWSER_MHTML_EXTRA_DATA_H_ | |
OLD | NEW |