| OLD | NEW |
| 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_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| 7 | 7 |
| 8 // This file provides declarations and stub definitions for classes we encouter | 8 // This file provides declarations and stub definitions for classes we encouter |
| 9 // during the porting effort. It is not meant to be permanent, and classes will | 9 // during the porting effort. It is not meant to be permanent, and classes will |
| 10 // be removed from here as they are fleshed out more completely. | 10 // be removed from here as they are fleshed out more completely. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 public: | 439 public: |
| 440 enum SavePackageType { | 440 enum SavePackageType { |
| 441 SAVE_AS_ONLY_HTML = 0, | 441 SAVE_AS_ONLY_HTML = 0, |
| 442 SAVE_AS_COMPLETE_HTML = 1 | 442 SAVE_AS_COMPLETE_HTML = 1 |
| 443 }; | 443 }; |
| 444 struct SavePackageParam { | 444 struct SavePackageParam { |
| 445 SavePackageParam(const std::string&) { } | 445 SavePackageParam(const std::string&) { } |
| 446 const std::string current_tab_mime_type; | 446 const std::string current_tab_mime_type; |
| 447 PrefService* prefs; | 447 PrefService* prefs; |
| 448 SavePackageType save_type; | 448 SavePackageType save_type; |
| 449 std::wstring saved_main_file_path; | 449 FilePath saved_main_file_path; |
| 450 std::wstring dir; | 450 FilePath dir; |
| 451 }; | 451 }; |
| 452 static bool IsSavableContents(const std::string&) { | 452 static bool IsSavableContents(const std::string&) { |
| 453 NOTIMPLEMENTED(); | 453 NOTIMPLEMENTED(); |
| 454 return false; | 454 return false; |
| 455 } | 455 } |
| 456 static bool IsSavableURL(const GURL& url) { | 456 static bool IsSavableURL(const GURL& url) { |
| 457 NOTIMPLEMENTED(); | 457 NOTIMPLEMENTED(); |
| 458 return false; | 458 return false; |
| 459 } | 459 } |
| 460 static std::wstring GetSuggestNameForSaveAs(PrefService*, | 460 static FilePath GetSuggestNameForSaveAs(PrefService*, |
| 461 const std::wstring&) { | 461 const FilePath&) { |
| 462 NOTIMPLEMENTED(); | 462 NOTIMPLEMENTED(); |
| 463 return L""; | 463 return FilePath(); |
| 464 } | 464 } |
| 465 static bool GetSaveInfo(const std::wstring&, void*, | 465 static bool GetSaveInfo(const FilePath&, void*, |
| 466 SavePackageParam*, DownloadManager*) { | 466 SavePackageParam*, DownloadManager*) { |
| 467 NOTIMPLEMENTED(); | 467 NOTIMPLEMENTED(); |
| 468 return false; | 468 return false; |
| 469 } | 469 } |
| 470 SavePackage(WebContents*, SavePackageType, const std::wstring&, | 470 SavePackage(WebContents*, SavePackageType, const FilePath&, |
| 471 const std::wstring&) { NOTIMPLEMENTED(); } | 471 const FilePath&) { NOTIMPLEMENTED(); } |
| 472 bool Init() { | 472 bool Init() { |
| 473 NOTIMPLEMENTED(); | 473 NOTIMPLEMENTED(); |
| 474 return true; | 474 return true; |
| 475 } | 475 } |
| 476 virtual void OnReceivedSavableResourceLinksForCurrentPage( | 476 virtual void OnReceivedSavableResourceLinksForCurrentPage( |
| 477 const std::vector<GURL>& resources_list, | 477 const std::vector<GURL>& resources_list, |
| 478 const std::vector<GURL>& referrers_list, | 478 const std::vector<GURL>& referrers_list, |
| 479 const std::vector<GURL>& frames_list) { NOTIMPLEMENTED(); } | 479 const std::vector<GURL>& frames_list) { NOTIMPLEMENTED(); } |
| 480 virtual void OnReceivedSerializedHtmlData(const GURL& frame_url, | 480 virtual void OnReceivedSerializedHtmlData(const GURL& frame_url, |
| 481 const std::string& data, | 481 const std::string& data, |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 int render_view_id); | 1072 int render_view_id); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 class RepostFormWarningDialog { | 1075 class RepostFormWarningDialog { |
| 1076 public: | 1076 public: |
| 1077 static void RunRepostFormWarningDialog(NavigationController*) { } | 1077 static void RunRepostFormWarningDialog(NavigationController*) { } |
| 1078 virtual ~RepostFormWarningDialog() { } | 1078 virtual ~RepostFormWarningDialog() { } |
| 1079 }; | 1079 }; |
| 1080 | 1080 |
| 1081 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 1081 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |