| 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 <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/ref_counted.h" | 18 #include "base/ref_counted.h" |
| 19 #include "base/gfx/native_widget_types.h" |
| 19 #include "base/gfx/rect.h" | 20 #include "base/gfx/rect.h" |
| 20 #include "chrome/browser/bookmarks/bookmark_service.h" | 21 #include "chrome/browser/bookmarks/bookmark_service.h" |
| 21 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/cache_manager_host.h" | 23 #include "chrome/browser/cache_manager_host.h" |
| 23 #include "chrome/browser/search_engines/template_url.h" | 24 #include "chrome/browser/search_engines/template_url.h" |
| 24 #include "chrome/browser/tab_contents/tab_contents_type.h" | 25 #include "chrome/browser/tab_contents/tab_contents_type.h" |
| 25 #include "chrome/common/navigation_types.h" | 26 #include "chrome/common/navigation_types.h" |
| 26 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
| 27 #include "chrome/common/page_transition_types.h" | 28 #include "chrome/common/page_transition_types.h" |
| 28 #include "chrome/common/render_messages.h" | |
| 29 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
| 30 #include "skia/include/SkBitmap.h" | 30 #include "skia/include/SkBitmap.h" |
| 31 #include "webkit/glue/password_form.h" | 31 #include "webkit/glue/password_form.h" |
| 32 #include "webkit/glue/window_open_disposition.h" | 32 #include "webkit/glue/window_open_disposition.h" |
| 33 | 33 |
| 34 class AutofillForm; |
| 34 class Browser; | 35 class Browser; |
| 35 class BookmarkService; | 36 class BookmarkService; |
| 36 class CommandLine; | 37 class CommandLine; |
| 37 class ConstrainedWindow; | 38 class ConstrainedWindow; |
| 38 class DownloadManager; | 39 class DownloadManager; |
| 39 class HistoryService; | 40 class HistoryService; |
| 40 class MetricsService; | 41 class MetricsService; |
| 41 class ModalHtmlDialogDelegate; | 42 class ModalHtmlDialogDelegate; |
| 42 class NavigationController; | 43 class NavigationController; |
| 43 class NavigationEntry; | 44 class NavigationEntry; |
| 44 class NotificationService; | 45 class NotificationService; |
| 45 class ProfileManager; | 46 class ProfileManager; |
| 46 class Profile; | 47 class Profile; |
| 47 class RenderProcessHost; | 48 class RenderProcessHost; |
| 48 class SessionID; | 49 class SessionID; |
| 49 class SiteInstance; | 50 class SiteInstance; |
| 50 class SpellChecker; | 51 class SpellChecker; |
| 51 class TabContents; | 52 class TabContents; |
| 52 struct ThumbnailScore; | 53 struct ThumbnailScore; |
| 53 class Task; | 54 class Task; |
| 54 class TemplateURL; | 55 class TemplateURL; |
| 55 class TemplateURLRef; | 56 class TemplateURLRef; |
| 56 class URLRequestContext; | 57 class URLRequestContext; |
| 57 class UserScriptMaster; | 58 class UserScriptMaster; |
| 58 class VisitedLinkMaster; | 59 class VisitedLinkMaster; |
| 59 class WebContents; | 60 class WebContents; |
| 61 class WebPreferences; |
| 60 | 62 |
| 61 namespace IPC { | 63 namespace IPC { |
| 62 class Message; | 64 class Message; |
| 63 } | 65 } |
| 64 | 66 |
| 65 //--------------------------------------------------------------------------- | 67 //--------------------------------------------------------------------------- |
| 66 // These stubs are for Browser_main() | 68 // These stubs are for Browser_main() |
| 67 | 69 |
| 68 // TODO(port): MessageWindow is very windows-specific, but provides the concept | 70 // TODO(port): MessageWindow is very windows-specific, but provides the concept |
| 69 // of singleton browser process per user-data-dir. Investigate how | 71 // of singleton browser process per user-data-dir. Investigate how |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 class BrokerServices { | 283 class BrokerServices { |
| 282 public: | 284 public: |
| 283 void Init() { NOTIMPLEMENTED(); } | 285 void Init() { NOTIMPLEMENTED(); } |
| 284 }; | 286 }; |
| 285 | 287 |
| 286 } // namespace sandbox | 288 } // namespace sandbox |
| 287 | 289 |
| 288 class IconManager { | 290 class IconManager { |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 struct ViewHostMsg_Resource_Request; | 293 struct ViewHostMsg_DidPrintPage_Params; |
| 294 struct ViewHostMsg_FrameNavigate_Params; |
| 292 | 295 |
| 293 class ResourceDispatcherHost { | 296 class ResourceDispatcherHost { |
| 294 public: | 297 public: |
| 295 explicit ResourceDispatcherHost(MessageLoop* loop) {} | 298 explicit ResourceDispatcherHost(MessageLoop* loop) {} |
| 296 | 299 |
| 297 class Receiver { | 300 class Receiver { |
| 298 public: | 301 public: |
| 299 virtual bool Send(IPC::Message* message) = 0; | 302 virtual bool Send(IPC::Message* message) = 0; |
| 300 }; | 303 }; |
| 301 | 304 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 } | 643 } |
| 641 void FileSelected(const std::wstring&) { NOTIMPLEMENTED(); } | 644 void FileSelected(const std::wstring&) { NOTIMPLEMENTED(); } |
| 642 void MultiFilesSelected(const std::vector<std::wstring>&) { | 645 void MultiFilesSelected(const std::vector<std::wstring>&) { |
| 643 NOTIMPLEMENTED(); | 646 NOTIMPLEMENTED(); |
| 644 } | 647 } |
| 645 bool CreateRenderView() { | 648 bool CreateRenderView() { |
| 646 NOTIMPLEMENTED(); | 649 NOTIMPLEMENTED(); |
| 647 return true; | 650 return true; |
| 648 } | 651 } |
| 649 void SetAlternateErrorPageURL(const GURL&) { NOTIMPLEMENTED(); } | 652 void SetAlternateErrorPageURL(const GURL&) { NOTIMPLEMENTED(); } |
| 650 void UpdateWebPreferences(WebPreferences) { NOTIMPLEMENTED(); } | 653 void UpdateWebPreferences(const WebPreferences&) { NOTIMPLEMENTED(); } |
| 651 void ReservePageIDRange(int) { NOTIMPLEMENTED(); } | 654 void ReservePageIDRange(int) { NOTIMPLEMENTED(); } |
| 652 }; | 655 }; |
| 653 | 656 |
| 654 class LoadNotificationDetails { | 657 class LoadNotificationDetails { |
| 655 public: | 658 public: |
| 656 LoadNotificationDetails(const GURL&, PageTransition::Type, | 659 LoadNotificationDetails(const GURL&, PageTransition::Type, |
| 657 base::TimeDelta, NavigationController*, int) { } | 660 base::TimeDelta, NavigationController*, int) { } |
| 658 }; | 661 }; |
| 659 | 662 |
| 660 class TabContents : public NotificationObserver { | 663 class TabContents : public NotificationObserver { |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 return L""; | 1135 return L""; |
| 1133 } | 1136 } |
| 1134 }; | 1137 }; |
| 1135 | 1138 |
| 1136 class SimpleAlertInfoBarDelegate : public InfoBarDelegate { | 1139 class SimpleAlertInfoBarDelegate : public InfoBarDelegate { |
| 1137 public: | 1140 public: |
| 1138 SimpleAlertInfoBarDelegate(WebContents*, const std::wstring&, void*) {} | 1141 SimpleAlertInfoBarDelegate(WebContents*, const std::wstring&, void*) {} |
| 1139 }; | 1142 }; |
| 1140 | 1143 |
| 1141 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 1144 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |