| 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. |
| 11 | 11 |
| 12 #include <list> | |
| 13 #include <string> | 12 #include <string> |
| 14 | 13 |
| 15 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 16 #include "base/clipboard.h" | |
| 17 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 18 #include "base/logging.h" | 16 #include "base/logging.h" |
| 19 #include "base/message_loop.h" | |
| 20 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
| 21 #include "base/string16.h" | 18 #include "base/string16.h" |
| 22 #include "base/gfx/native_widget_types.h" | 19 #include "base/gfx/native_widget_types.h" |
| 23 #include "base/gfx/rect.h" | |
| 24 #include "chrome/browser/bookmarks/bookmark_model.h" | |
| 25 #include "chrome/browser/browser_process.h" | |
| 26 #include "chrome/browser/cancelable_request.h" | 20 #include "chrome/browser/cancelable_request.h" |
| 27 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 21 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 28 #include "chrome/browser/download/download_shelf.h" | |
| 29 #include "chrome/browser/download/save_types.h" | |
| 30 #include "chrome/browser/history/download_types.h" | |
| 31 #include "chrome/browser/history/history.h" | |
| 32 #include "chrome/browser/renderer_host/resource_handler.h" | |
| 33 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | |
| 34 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | |
| 35 #include "chrome/browser/search_engines/template_url.h" | |
| 36 #include "chrome/browser/sessions/session_id.h" | |
| 37 #include "chrome/browser/ssl/ssl_error_info.h" | |
| 38 #include "chrome/browser/ssl/ssl_manager.h" | |
| 39 #include "chrome/browser/tab_contents/infobar_delegate.h" | |
| 40 #include "chrome/browser/tab_contents/navigation_entry.h" | 22 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 41 #include "chrome/browser/tab_contents/page_navigator.h" | |
| 42 #include "chrome/browser/tab_contents/tab_contents_type.h" | |
| 43 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 44 #include "chrome/browser/renderer_host/render_widget_host.h" | |
| 45 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | |
| 46 #include "chrome/common/child_process_info.h" | |
| 47 #include "chrome/common/navigation_types.h" | |
| 48 #include "chrome/common/notification_service.h" | |
| 49 #include "chrome/common/page_transition_types.h" | |
| 50 #include "chrome/common/pref_names.h" | |
| 51 #include "chrome/common/pref_service.h" | |
| 52 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 53 #include "net/base/load_states.h" | |
| 54 #include "skia/include/SkBitmap.h" | 24 #include "skia/include/SkBitmap.h" |
| 55 #include "webkit/glue/password_form.h" | |
| 56 #include "webkit/glue/webplugin.h" | |
| 57 #include "webkit/glue/window_open_disposition.h" | |
| 58 | 25 |
| 59 class BookmarkContextMenu; | 26 class BookmarkContextMenu; |
| 27 class BookmarkNode; |
| 60 class Browser; | 28 class Browser; |
| 61 class CommandLine; | 29 class CommandLine; |
| 62 class CPCommandInterface; | |
| 63 class DOMUIHost; | |
| 64 class DownloadItem; | 30 class DownloadItem; |
| 65 class DownloadManager; | 31 class MessageLoop; |
| 66 class HistoryService; | |
| 67 class LoginHandler; | |
| 68 class MetricsService; | |
| 69 class MixedContentHandler; | |
| 70 class ModalHtmlDialogDelegate; | |
| 71 class NavigationController; | 32 class NavigationController; |
| 72 class NavigationEntry; | |
| 73 class NotificationService; | |
| 74 class PluginService; | |
| 75 class ProfileManager; | |
| 76 class Profile; | 33 class Profile; |
| 77 class RenderProcessHost; | |
| 78 class RenderWidgetHelper; | |
| 79 class RenderViewHostDelegate; | 34 class RenderViewHostDelegate; |
| 80 class ResourceMessageFilter; | |
| 81 class SessionBackend; | |
| 82 class SessionCommand; | |
| 83 class SessionID; | |
| 84 class SiteInstance; | |
| 85 class SpellChecker; | |
| 86 class TabContentsDelegate; | |
| 87 class TabContentsFactory; | |
| 88 class TabNavigation; | |
| 89 struct ThumbnailScore; | |
| 90 class Task; | |
| 91 class TemplateURL; | |
| 92 class TemplateURLRef; | |
| 93 class URLRequest; | 35 class URLRequest; |
| 94 class URLRequestContext; | |
| 95 class UserScriptMaster; | |
| 96 class VisitedLinkMaster; | |
| 97 class WebContents; | 36 class WebContents; |
| 98 class WebContentsView; | 37 struct ViewHostMsg_DidPrintPage_Params; |
| 99 struct WebPluginGeometry; | |
| 100 class WebPreferences; | |
| 101 | 38 |
| 102 namespace base { | 39 namespace gfx { |
| 103 class Thread; | 40 class Rect; |
| 104 } | 41 } |
| 105 | 42 |
| 106 namespace IPC { | 43 namespace IPC { |
| 107 class Message; | 44 class Message; |
| 108 } | 45 } |
| 109 | 46 |
| 110 namespace net { | |
| 111 class AuthChallengeInfo; | |
| 112 class IOBuffer; | |
| 113 class X509Certificate; | |
| 114 } | |
| 115 | |
| 116 //--------------------------------------------------------------------------- | 47 //--------------------------------------------------------------------------- |
| 117 // These stubs are for Browser_main() | 48 // These stubs are for Browser_main() |
| 118 | 49 |
| 119 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
| 120 // TODO(port): needs an implementation of ProcessSingleton. | 51 // TODO(port): needs an implementation of ProcessSingleton. |
| 121 class ProcessSingleton { | 52 class ProcessSingleton { |
| 122 public: | 53 public: |
| 123 explicit ProcessSingleton(const FilePath& user_data_dir) { } | 54 explicit ProcessSingleton(const FilePath& user_data_dir) { } |
| 124 ~ProcessSingleton() { } | 55 ~ProcessSingleton() { } |
| 125 bool NotifyOtherProcess() { | 56 bool NotifyOtherProcess() { |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 public: | 397 public: |
| 467 static void GetBrowserWindowBounds(const std::wstring& app_name, | 398 static void GetBrowserWindowBounds(const std::wstring& app_name, |
| 468 const gfx::Rect& specified_bounds, | 399 const gfx::Rect& specified_bounds, |
| 469 gfx::Rect* window_bounds, | 400 gfx::Rect* window_bounds, |
| 470 bool* maximized); | 401 bool* maximized); |
| 471 }; | 402 }; |
| 472 | 403 |
| 473 //--------------------------------------------------------------------------- | 404 //--------------------------------------------------------------------------- |
| 474 // These stubs are for Profile | 405 // These stubs are for Profile |
| 475 | 406 |
| 476 namespace base { | |
| 477 class SharedMemory; | |
| 478 } | |
| 479 | |
| 480 class Encryptor { | 407 class Encryptor { |
| 481 public: | 408 public: |
| 482 static bool EncryptString16(const string16& plaintext, | 409 static bool EncryptString16(const string16& plaintext, |
| 483 std::string* ciphertext) { | 410 std::string* ciphertext) { |
| 484 NOTIMPLEMENTED(); | 411 NOTIMPLEMENTED(); |
| 485 return false; | 412 return false; |
| 486 } | 413 } |
| 487 | 414 |
| 488 static bool DecryptString16(const std::string& ciphertext, | 415 static bool DecryptString16(const std::string& ciphertext, |
| 489 string16* plaintext) { | 416 string16* plaintext) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 public: | 466 public: |
| 540 struct HtmlDialogParams { | 467 struct HtmlDialogParams { |
| 541 GURL url; | 468 GURL url; |
| 542 int width; | 469 int width; |
| 543 int height; | 470 int height; |
| 544 std::string json_input; | 471 std::string json_input; |
| 545 }; | 472 }; |
| 546 }; | 473 }; |
| 547 | 474 |
| 548 #if defined(OS_MACOSX) | 475 #if defined(OS_MACOSX) |
| 476 |
| 477 class WebContentsView; |
| 478 |
| 549 class FindBarMac { | 479 class FindBarMac { |
| 550 public: | 480 public: |
| 551 FindBarMac(WebContentsView*, gfx::NativeWindow) { } | 481 FindBarMac(WebContentsView*, gfx::NativeWindow) { } |
| 552 void Show() { } | 482 void Show() { } |
| 553 void Close() { } | 483 void Close() { } |
| 554 void StartFinding(bool&) { } | 484 void StartFinding(bool&) { } |
| 555 void EndFindSession() { } | 485 void EndFindSession() { } |
| 556 void DidBecomeUnselected() { } | 486 void DidBecomeUnselected() { } |
| 557 bool IsVisible() { return false; } | 487 bool IsVisible() { return false; } |
| 558 bool IsAnimating() { return false; } | 488 bool IsAnimating() { return false; } |
| 559 gfx::NativeView GetView() { return nil; } | 489 gfx::NativeView GetView() { return nil; } |
| 560 std::string find_string() { return ""; } | 490 std::string find_string() { return ""; } |
| 561 void OnFindReply(int, int, const gfx::Rect&, int, bool) { } | 491 void OnFindReply(int, int, const gfx::Rect&, int, bool) { } |
| 562 }; | 492 }; |
| 563 #endif | 493 #endif |
| 564 | 494 |
| 565 class LoginHandler { | 495 class LoginHandler { |
| 566 public: | 496 public: |
| 567 void SetAuth(const std::wstring& username, | 497 void SetAuth(const std::wstring& username, |
| 568 const std::wstring& password) { | 498 const std::wstring& password) { |
| 569 NOTIMPLEMENTED(); | 499 NOTIMPLEMENTED(); |
| 570 } | 500 } |
| 571 void CancelAuth() { NOTIMPLEMENTED(); } | 501 void CancelAuth() { NOTIMPLEMENTED(); } |
| 572 void OnRequestCancelled() { NOTIMPLEMENTED(); } | 502 void OnRequestCancelled() { NOTIMPLEMENTED(); } |
| 573 }; | 503 }; |
| 574 | 504 |
| 505 namespace net { |
| 506 class AuthChallengeInfo; |
| 507 } |
| 508 |
| 575 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 509 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
| 576 URLRequest* request, | 510 URLRequest* request, |
| 577 MessageLoop* ui_loop); | 511 MessageLoop* ui_loop); |
| 578 | 512 |
| 579 class RepostFormWarningDialog { | 513 class RepostFormWarningDialog { |
| 580 public: | 514 public: |
| 581 static void RunRepostFormWarningDialog(NavigationController*) { } | 515 static void RunRepostFormWarningDialog(NavigationController*) { } |
| 582 virtual ~RepostFormWarningDialog() { } | 516 virtual ~RepostFormWarningDialog() { } |
| 583 }; | 517 }; |
| 584 | 518 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 void InitHidden() { NOTIMPLEMENTED(); } | 563 void InitHidden() { NOTIMPLEMENTED(); } |
| 630 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } | 564 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } |
| 631 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } | 565 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } |
| 632 void SizeToPreferredSize() { NOTIMPLEMENTED(); } | 566 void SizeToPreferredSize() { NOTIMPLEMENTED(); } |
| 633 HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } | 567 HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } |
| 634 void Layout() { NOTIMPLEMENTED(); } | 568 void Layout() { NOTIMPLEMENTED(); } |
| 635 void SchedulePaint() { NOTIMPLEMENTED(); } | 569 void SchedulePaint() { NOTIMPLEMENTED(); } |
| 636 }; | 570 }; |
| 637 | 571 |
| 638 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 572 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |