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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 217008: Update the TabContents::SavePage parameter to take FilePath instead of wstrin... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: ToT Created 11 years, 2 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // AppModalDialog calls this when the javascript dialog has been destroyed. 552 // AppModalDialog calls this when the javascript dialog has been destroyed.
553 void OnJavaScriptMessageBoxWindowDestroyed(); 553 void OnJavaScriptMessageBoxWindowDestroyed();
554 554
555 // Prepare for saving the current web page to disk. 555 // Prepare for saving the current web page to disk.
556 void OnSavePage(); 556 void OnSavePage();
557 557
558 // Save page with the main HTML file path, the directory for saving resources, 558 // Save page with the main HTML file path, the directory for saving resources,
559 // and the save type: HTML only or complete web page. Returns true if the 559 // and the save type: HTML only or complete web page. Returns true if the
560 // saving process has been initiated successfully. 560 // saving process has been initiated successfully.
561 bool SavePage(const std::wstring& main_file, 561 bool SavePage(const FilePath& main_file, const FilePath& dir_path,
562 const std::wstring& dir_path,
563 SavePackage::SavePackageType save_type); 562 SavePackage::SavePackageType save_type);
564 563
565 // Displays asynchronously a print preview (generated by the renderer) if not 564 // Displays asynchronously a print preview (generated by the renderer) if not
566 // already displayed and ask the user for its preferred print settings with 565 // already displayed and ask the user for its preferred print settings with
567 // the "Print..." dialog box. (managed by the print worker thread). 566 // the "Print..." dialog box. (managed by the print worker thread).
568 // TODO(maruel): Creates a snapshot of the renderer to be used for the new 567 // TODO(maruel): Creates a snapshot of the renderer to be used for the new
569 // tab for the printing facility. 568 // tab for the printing facility.
570 void PrintPreview(); 569 void PrintPreview();
571 570
572 // Prints the current document immediately. Since the rendering is 571 // Prints the current document immediately. Since the rendering is
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 // If this tab was created from a renderer using window.open, this will be 1151 // If this tab was created from a renderer using window.open, this will be
1153 // non-NULL and represent the DOMUI of the opening renderer. 1152 // non-NULL and represent the DOMUI of the opening renderer.
1154 DOMUITypeID opener_dom_ui_type_; 1153 DOMUITypeID opener_dom_ui_type_;
1155 1154
1156 // --------------------------------------------------------------------------- 1155 // ---------------------------------------------------------------------------
1157 1156
1158 DISALLOW_COPY_AND_ASSIGN(TabContents); 1157 DISALLOW_COPY_AND_ASSIGN(TabContents);
1159 }; 1158 };
1160 1159
1161 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1160 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698