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" | |
20 #include "base/gfx/rect.h" | 19 #include "base/gfx/rect.h" |
21 #include "chrome/browser/bookmarks/bookmark_service.h" | 20 #include "chrome/browser/bookmarks/bookmark_service.h" |
22 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/cache_manager_host.h" | 22 #include "chrome/browser/cache_manager_host.h" |
24 #include "chrome/browser/search_engines/template_url.h" | 23 #include "chrome/browser/search_engines/template_url.h" |
25 #include "chrome/browser/tab_contents/navigation_entry.h" | 24 #include "chrome/browser/tab_contents/navigation_entry.h" |
26 #include "chrome/browser/tab_contents/tab_contents_type.h" | 25 #include "chrome/browser/tab_contents/tab_contents_type.h" |
27 #include "chrome/common/navigation_types.h" | 26 #include "chrome/common/navigation_types.h" |
28 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
29 #include "chrome/common/page_transition_types.h" | 28 #include "chrome/common/page_transition_types.h" |
| 29 #include "chrome/common/render_messages.h" |
30 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
31 #include "skia/include/SkBitmap.h" | 31 #include "skia/include/SkBitmap.h" |
32 #include "webkit/glue/password_form.h" | 32 #include "webkit/glue/password_form.h" |
33 #include "webkit/glue/window_open_disposition.h" | 33 #include "webkit/glue/window_open_disposition.h" |
34 | 34 |
35 class AutofillForm; | |
36 class Browser; | 35 class Browser; |
37 class BookmarkService; | 36 class BookmarkService; |
38 class CommandLine; | 37 class CommandLine; |
39 class ConstrainedWindow; | 38 class ConstrainedWindow; |
40 class DownloadManager; | 39 class DownloadManager; |
41 class HistoryService; | 40 class HistoryService; |
42 class MetricsService; | 41 class MetricsService; |
43 class ModalHtmlDialogDelegate; | 42 class ModalHtmlDialogDelegate; |
44 class NavigationController; | 43 class NavigationController; |
45 class NavigationEntry; | 44 class NavigationEntry; |
46 class NotificationService; | 45 class NotificationService; |
47 class PluginService; | 46 class PluginService; |
48 class ProfileManager; | 47 class ProfileManager; |
49 class Profile; | 48 class Profile; |
50 class RenderProcessHost; | 49 class RenderProcessHost; |
51 class RenderWidgetHelper; | 50 class RenderWidgetHelper; |
52 class SessionID; | 51 class SessionID; |
53 class SiteInstance; | 52 class SiteInstance; |
54 class SpellChecker; | 53 class SpellChecker; |
55 class TabContents; | 54 class TabContents; |
56 struct ThumbnailScore; | 55 struct ThumbnailScore; |
57 class Task; | 56 class Task; |
58 class TemplateURL; | 57 class TemplateURL; |
59 class TemplateURLRef; | 58 class TemplateURLRef; |
60 class URLRequestContext; | 59 class URLRequestContext; |
61 class UserScriptMaster; | 60 class UserScriptMaster; |
62 class VisitedLinkMaster; | 61 class VisitedLinkMaster; |
63 class WebContents; | 62 class WebContents; |
64 class WebPreferences; | |
65 | 63 |
66 namespace IPC { | 64 namespace IPC { |
67 class Message; | 65 class Message; |
68 } | 66 } |
69 | 67 |
70 //--------------------------------------------------------------------------- | 68 //--------------------------------------------------------------------------- |
71 // These stubs are for Browser_main() | 69 // These stubs are for Browser_main() |
72 | 70 |
73 // TODO(port): MessageWindow is very windows-specific, but provides the concept | 71 // TODO(port): MessageWindow is very windows-specific, but provides the concept |
74 // of singleton browser process per user-data-dir. Investigate how | 72 // of singleton browser process per user-data-dir. Investigate how |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 class BrokerServices { | 284 class BrokerServices { |
287 public: | 285 public: |
288 void Init() { NOTIMPLEMENTED(); } | 286 void Init() { NOTIMPLEMENTED(); } |
289 }; | 287 }; |
290 | 288 |
291 } // namespace sandbox | 289 } // namespace sandbox |
292 | 290 |
293 class IconManager { | 291 class IconManager { |
294 }; | 292 }; |
295 | 293 |
296 struct ViewHostMsg_DidPrintPage_Params; | 294 struct ViewHostMsg_Resource_Request; |
297 struct ViewHostMsg_FrameNavigate_Params; | |
298 | 295 |
299 class ResourceDispatcherHost { | 296 class ResourceDispatcherHost { |
300 public: | 297 public: |
301 explicit ResourceDispatcherHost(MessageLoop* loop) {} | 298 explicit ResourceDispatcherHost(MessageLoop* loop) {} |
302 | 299 |
303 class Receiver { | 300 class Receiver { |
304 public: | 301 public: |
305 virtual bool Send(IPC::Message* message) = 0; | 302 virtual bool Send(IPC::Message* message) = 0; |
306 }; | 303 }; |
307 void OnClosePageACK(int, int); | 304 void OnClosePageACK(int, int); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 } | 620 } |
624 void FileSelected(const std::wstring&) { NOTIMPLEMENTED(); } | 621 void FileSelected(const std::wstring&) { NOTIMPLEMENTED(); } |
625 void MultiFilesSelected(const std::vector<std::wstring>&) { | 622 void MultiFilesSelected(const std::vector<std::wstring>&) { |
626 NOTIMPLEMENTED(); | 623 NOTIMPLEMENTED(); |
627 } | 624 } |
628 bool CreateRenderView() { | 625 bool CreateRenderView() { |
629 NOTIMPLEMENTED(); | 626 NOTIMPLEMENTED(); |
630 return true; | 627 return true; |
631 } | 628 } |
632 void SetAlternateErrorPageURL(const GURL&) { NOTIMPLEMENTED(); } | 629 void SetAlternateErrorPageURL(const GURL&) { NOTIMPLEMENTED(); } |
633 void UpdateWebPreferences(const WebPreferences&) { NOTIMPLEMENTED(); } | 630 void UpdateWebPreferences(WebPreferences) { NOTIMPLEMENTED(); } |
634 void ReservePageIDRange(int) { NOTIMPLEMENTED(); } | 631 void ReservePageIDRange(int) { NOTIMPLEMENTED(); } |
635 }; | 632 }; |
636 | 633 |
637 class LoadNotificationDetails { | 634 class LoadNotificationDetails { |
638 public: | 635 public: |
639 LoadNotificationDetails(const GURL&, PageTransition::Type, | 636 LoadNotificationDetails(const GURL&, PageTransition::Type, |
640 base::TimeDelta, NavigationController*, int) { } | 637 base::TimeDelta, NavigationController*, int) { } |
641 }; | 638 }; |
642 | 639 |
643 class TabContents : public NotificationObserver { | 640 class TabContents : public NotificationObserver { |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 return L""; | 1098 return L""; |
1102 } | 1099 } |
1103 }; | 1100 }; |
1104 | 1101 |
1105 class SimpleAlertInfoBarDelegate : public InfoBarDelegate { | 1102 class SimpleAlertInfoBarDelegate : public InfoBarDelegate { |
1106 public: | 1103 public: |
1107 SimpleAlertInfoBarDelegate(WebContents*, const std::wstring&, void*) {} | 1104 SimpleAlertInfoBarDelegate(WebContents*, const std::wstring&, void*) {} |
1108 }; | 1105 }; |
1109 | 1106 |
1110 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 1107 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
OLD | NEW |