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

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

Issue 22920005: Refactor MHTMLGenerator to allow getting sending the data to a file descriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation Created 7 years, 3 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_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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 SavePageType save_type) = 0; 345 SavePageType save_type) = 0;
346 346
347 // Saves the given frame's URL to the local filesystem.. 347 // Saves the given frame's URL to the local filesystem..
348 virtual void SaveFrame(const GURL& url, 348 virtual void SaveFrame(const GURL& url,
349 const Referrer& referrer) = 0; 349 const Referrer& referrer) = 0;
350 350
351 // Generate an MHTML representation of the current page in the given file. 351 // Generate an MHTML representation of the current page in the given file.
352 virtual void GenerateMHTML( 352 virtual void GenerateMHTML(
353 const base::FilePath& file, 353 const base::FilePath& file,
354 const base::Callback<void( 354 const base::Callback<void(
355 const base::FilePath& /* path to the MHTML file */,
356 int64 /* size of the file */)>& callback) = 0; 355 int64 /* size of the file */)>& callback) = 0;
357 356
358 // Returns true if the active NavigationEntry's page_id equals page_id. 357 // Returns true if the active NavigationEntry's page_id equals page_id.
359 virtual bool IsActiveEntry(int32 page_id) = 0; 358 virtual bool IsActiveEntry(int32 page_id) = 0;
360 359
361 // Returns the contents MIME type after a navigation. 360 // Returns the contents MIME type after a navigation.
362 virtual const std::string& GetContentsMimeType() const = 0; 361 virtual const std::string& GetContentsMimeType() const = 0;
363 362
364 // Returns true if this WebContents will notify about disconnection. 363 // Returns true if this WebContents will notify about disconnection.
365 virtual bool WillNotifyDisconnection() const = 0; 364 virtual bool WillNotifyDisconnection() const = 0;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 460
462 private: 461 private:
463 // This interface should only be implemented inside content. 462 // This interface should only be implemented inside content.
464 friend class WebContentsImpl; 463 friend class WebContentsImpl;
465 WebContents() {} 464 WebContents() {}
466 }; 465 };
467 466
468 } // namespace content 467 } // namespace content
469 468
470 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« android_webview/native/aw_contents.cc ('K') | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698