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

Side by Side Diff: content/public/browser/web_contents.h

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto origin/master. Created 4 years, 7 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/common_param_traits_macros.h » ('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) 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class InterstitialPage; 53 class InterstitialPage;
54 class PageState; 54 class PageState;
55 class RenderFrameHost; 55 class RenderFrameHost;
56 class RenderProcessHost; 56 class RenderProcessHost;
57 class RenderViewHost; 57 class RenderViewHost;
58 class RenderWidgetHostView; 58 class RenderWidgetHostView;
59 class WebContentsDelegate; 59 class WebContentsDelegate;
60 struct CustomContextMenuContext; 60 struct CustomContextMenuContext;
61 struct DropData; 61 struct DropData;
62 struct Manifest; 62 struct Manifest;
63 struct MHTMLGenerationParams;
63 struct PageImportanceSignals; 64 struct PageImportanceSignals;
64 struct RendererPreferences; 65 struct RendererPreferences;
65 66
66 // WebContents is the core class in content/. A WebContents renders web content 67 // WebContents is the core class in content/. A WebContents renders web content
67 // (usually HTML) in a rectangular area. 68 // (usually HTML) in a rectangular area.
68 // 69 //
69 // Instantiating one is simple: 70 // Instantiating one is simple:
70 // std::unique_ptr<content::WebContents> web_contents( 71 // std::unique_ptr<content::WebContents> web_contents(
71 // content::WebContents::Create( 72 // content::WebContents::Create(
72 // content::WebContents::CreateParams(browser_context))); 73 // content::WebContents::CreateParams(browser_context)));
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 virtual void SaveFrameWithHeaders(const GURL& url, 541 virtual void SaveFrameWithHeaders(const GURL& url,
541 const Referrer& referrer, 542 const Referrer& referrer,
542 const std::string& headers) = 0; 543 const std::string& headers) = 0;
543 544
544 // Generate an MHTML representation of the current page in the given file. 545 // Generate an MHTML representation of the current page in the given file.
545 // If |use_binary_encoding| is specified, a Content-Transfer-Encoding value of 546 // If |use_binary_encoding| is specified, a Content-Transfer-Encoding value of
546 // 'binary' will be used, instead of a combination of 'quoted-printable' and 547 // 'binary' will be used, instead of a combination of 'quoted-printable' and
547 // 'base64'. Binary encoding is known to have interoperability issues and is 548 // 'base64'. Binary encoding is known to have interoperability issues and is
548 // not the recommended encoding for shareable content. 549 // not the recommended encoding for shareable content.
549 virtual void GenerateMHTML( 550 virtual void GenerateMHTML(
550 const base::FilePath& file, 551 const MHTMLGenerationParams& params,
551 bool use_binary_encoding,
552 const base::Callback<void(int64_t /* size of the file */)>& callback) = 0; 552 const base::Callback<void(int64_t /* size of the file */)>& callback) = 0;
553 553
554 // Returns the contents MIME type after a navigation. 554 // Returns the contents MIME type after a navigation.
555 virtual const std::string& GetContentsMimeType() const = 0; 555 virtual const std::string& GetContentsMimeType() const = 0;
556 556
557 // Returns true if this WebContents will notify about disconnection. 557 // Returns true if this WebContents will notify about disconnection.
558 virtual bool WillNotifyDisconnection() const = 0; 558 virtual bool WillNotifyDisconnection() const = 0;
559 559
560 // Override the encoding and reload the page by sending down 560 // Override the encoding and reload the page by sending down
561 // ViewMsg_SetPageEncoding to the renderer. |UpdateEncoding| is kinda 561 // ViewMsg_SetPageEncoding to the renderer. |UpdateEncoding| is kinda
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 private: 741 private:
742 // This interface should only be implemented inside content. 742 // This interface should only be implemented inside content.
743 friend class WebContentsImpl; 743 friend class WebContentsImpl;
744 WebContents() {} 744 WebContents() {}
745 }; 745 };
746 746
747 } // namespace content 747 } // namespace content
748 748
749 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 749 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698