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

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: Addressed comments by avi@. 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // Prepare for saving the current web page to disk. 467 // Prepare for saving the current web page to disk.
468 virtual void OnSavePage() = 0; 468 virtual void OnSavePage() = 0;
469 469
470 // Save page with the main HTML file path, the directory for saving resources, 470 // Save page with the main HTML file path, the directory for saving resources,
471 // and the save type: HTML only or complete web page. Returns true if the 471 // and the save type: HTML only or complete web page. Returns true if the
472 // saving process has been initiated successfully. 472 // saving process has been initiated successfully.
473 virtual bool SavePage(const base::FilePath& main_file, 473 virtual bool SavePage(const base::FilePath& main_file,
474 const base::FilePath& dir_path, 474 const base::FilePath& dir_path,
475 SavePageType save_type) = 0; 475 SavePageType save_type) = 0;
476 476
477 // Saves the given frame's URL to the local filesystem.. 477 // Saves the given frame's URL to the local filesystem.
478 virtual void SaveFrame(const GURL& url, 478 virtual void SaveFrame(const GURL& url,
479 const Referrer& referrer) = 0; 479 const Referrer& referrer) = 0;
480 480
481 // Saves the given frame's URL to the local filesystem. The headers, if
482 // provided, is used to make a request to the URL rather than using cache.
483 // Format of |headers| is a new line separated list of key value pairs:
484 // "<key1>: <value1>\n<key2>: <value2>".
Avi (use Gerrit) 2015/03/06 23:55:20 Are these spaces right? You split on ":", not on "
Not at Google. Contact bengr 2015/03/07 00:45:02 Space doesn't matter since each they are trimmed b
Avi (use Gerrit) 2015/03/07 00:50:02 Oh. I didn't know that about SplitString. Thank yo
485 virtual void SaveFrameWithHeaders(const GURL& url,
486 const Referrer& referrer,
487 const std::string& headers) = 0;
488
481 // Generate an MHTML representation of the current page in the given file. 489 // Generate an MHTML representation of the current page in the given file.
482 virtual void GenerateMHTML( 490 virtual void GenerateMHTML(
483 const base::FilePath& file, 491 const base::FilePath& file,
484 const base::Callback<void( 492 const base::Callback<void(
485 int64 /* size of the file */)>& callback) = 0; 493 int64 /* size of the file */)>& callback) = 0;
486 494
487 // Returns the contents MIME type after a navigation. 495 // Returns the contents MIME type after a navigation.
488 virtual const std::string& GetContentsMimeType() const = 0; 496 virtual const std::string& GetContentsMimeType() const = 0;
489 497
490 // Returns true if this WebContents will notify about disconnection. 498 // Returns true if this WebContents will notify about disconnection.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 636
629 private: 637 private:
630 // This interface should only be implemented inside content. 638 // This interface should only be implemented inside content.
631 friend class WebContentsImpl; 639 friend class WebContentsImpl;
632 WebContents() {} 640 WebContents() {}
633 }; 641 };
634 642
635 } // namespace content 643 } // namespace content
636 644
637 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 645 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698