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

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

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // Check whether we can do the saving page operation this page given its MIME 307 // Check whether we can do the saving page operation this page given its MIME
308 // type. 308 // type.
309 virtual bool IsSavable() = 0; 309 virtual bool IsSavable() = 0;
310 310
311 // Prepare for saving the current web page to disk. 311 // Prepare for saving the current web page to disk.
312 virtual void OnSavePage() = 0; 312 virtual void OnSavePage() = 0;
313 313
314 // Save page with the main HTML file path, the directory for saving resources, 314 // Save page with the main HTML file path, the directory for saving resources,
315 // and the save type: HTML only or complete web page. Returns true if the 315 // and the save type: HTML only or complete web page. Returns true if the
316 // saving process has been initiated successfully. 316 // saving process has been initiated successfully.
317 virtual bool SavePage(const FilePath& main_file, 317 virtual bool SavePage(const base::FilePath& main_file,
318 const FilePath& dir_path, 318 const base::FilePath& dir_path,
319 SavePageType save_type) = 0; 319 SavePageType save_type) = 0;
320 320
321 // Generate an MHTML representation of the current page in the given file. 321 // Generate an MHTML representation of the current page in the given file.
322 virtual void GenerateMHTML( 322 virtual void GenerateMHTML(
323 const FilePath& file, 323 const base::FilePath& file,
324 const base::Callback<void(const FilePath& /* path to the MHTML file */, 324 const base::Callback<void(
325 int64 /* size of the file */)>& callback) = 0; 325 const base::FilePath& /* path to the MHTML file */,
326 int64 /* size of the file */)>& callback) = 0;
326 327
327 // Returns true if the active NavigationEntry's page_id equals page_id. 328 // Returns true if the active NavigationEntry's page_id equals page_id.
328 virtual bool IsActiveEntry(int32 page_id) = 0; 329 virtual bool IsActiveEntry(int32 page_id) = 0;
329 330
330 // Returns the contents MIME type after a navigation. 331 // Returns the contents MIME type after a navigation.
331 virtual const std::string& GetContentsMimeType() const = 0; 332 virtual const std::string& GetContentsMimeType() const = 0;
332 333
333 // Returns true if this WebContents will notify about disconnection. 334 // Returns true if this WebContents will notify about disconnection.
334 virtual bool WillNotifyDisconnection() const = 0; 335 virtual bool WillNotifyDisconnection() const = 0;
335 336
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // is not resized to the given image_size. If 0 is passed, the first frame of 446 // is not resized to the given image_size. If 0 is passed, the first frame of
446 // the image is returned. 447 // the image is returned.
447 virtual int DownloadFavicon(const GURL& url, int image_size, 448 virtual int DownloadFavicon(const GURL& url, int image_size,
448 const FaviconDownloadCallback& callback) = 0; 449 const FaviconDownloadCallback& callback) = 0;
449 450
450 }; 451 };
451 452
452 } // namespace content 453 } // namespace content
453 454
454 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 455 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698