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

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

Issue 988453002: Request uncompressed images from data reduction proxy when saving. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace change Created 5 years, 9 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
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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // Prepare for saving the current web page to disk. 463 // Prepare for saving the current web page to disk.
464 virtual void OnSavePage() = 0; 464 virtual void OnSavePage() = 0;
465 465
466 // Save page with the main HTML file path, the directory for saving resources, 466 // Save page with the main HTML file path, the directory for saving resources,
467 // and the save type: HTML only or complete web page. Returns true if the 467 // and the save type: HTML only or complete web page. Returns true if the
468 // saving process has been initiated successfully. 468 // saving process has been initiated successfully.
469 virtual bool SavePage(const base::FilePath& main_file, 469 virtual bool SavePage(const base::FilePath& main_file,
470 const base::FilePath& dir_path, 470 const base::FilePath& dir_path,
471 SavePageType save_type) = 0; 471 SavePageType save_type) = 0;
472 472
473 // Saves the given frame's URL to the local filesystem.. 473 // Saves the given frame's URL to the local filesystem.
474 virtual void SaveFrame(const GURL& url, 474 virtual void SaveFrame(const GURL& url,
475 const Referrer& referrer) = 0; 475 const Referrer& referrer) = 0;
476 476
477 // Saves the given frame's URL to the local filesystem using the header
478 // provided to make the request.
Avi (use Gerrit) 2015/03/05 20:35:39 Document the format of the "headers" string.
Not at Google. Contact bengr 2015/03/06 22:23:48 Good call. Done.
479 virtual void SaveFrameWithHeader(const GURL& url,
Avi (use Gerrit) 2015/03/05 20:35:39 SaveFrameWithHeaders
Not at Google. Contact bengr 2015/03/06 22:23:48 Done.
480 const Referrer& referrer,
481 const std::string& header) = 0;
Avi (use Gerrit) 2015/03/05 20:35:39 There may be more than one header in this paramete
Not at Google. Contact bengr 2015/03/06 22:23:48 Done.
482
477 // Generate an MHTML representation of the current page in the given file. 483 // Generate an MHTML representation of the current page in the given file.
478 virtual void GenerateMHTML( 484 virtual void GenerateMHTML(
479 const base::FilePath& file, 485 const base::FilePath& file,
480 const base::Callback<void( 486 const base::Callback<void(
481 int64 /* size of the file */)>& callback) = 0; 487 int64 /* size of the file */)>& callback) = 0;
482 488
483 // Returns the contents MIME type after a navigation. 489 // Returns the contents MIME type after a navigation.
484 virtual const std::string& GetContentsMimeType() const = 0; 490 virtual const std::string& GetContentsMimeType() const = 0;
485 491
486 // Returns true if this WebContents will notify about disconnection. 492 // Returns true if this WebContents will notify about disconnection.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 630
625 private: 631 private:
626 // This interface should only be implemented inside content. 632 // This interface should only be implemented inside content.
627 friend class WebContentsImpl; 633 friend class WebContentsImpl;
628 WebContents() {} 634 WebContents() {}
629 }; 635 };
630 636
631 } // namespace content 637 } // namespace content
632 638
633 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 639 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698