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

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

Issue 2934004: Try to cut down Browser/TabContents header dependencies. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix unit tests compile Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <deque> 10 #include <deque>
11 #include <map> 11 #include <map>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/scoped_ptr.h" 18 #include "base/scoped_ptr.h"
19 #include "chrome/browser/autocomplete/autocomplete_edit.h"
20 #include "chrome/browser/cancelable_request.h" 19 #include "chrome/browser/cancelable_request.h"
21 #include "chrome/browser/dom_ui/dom_ui_factory.h" 20 #include "chrome/browser/dom_ui/dom_ui_factory.h"
22 #include "chrome/browser/download/save_package.h" 21 #include "chrome/browser/download/save_package.h"
23 #include "chrome/browser/extensions/image_loading_tracker.h" 22 #include "chrome/browser/extensions/image_loading_tracker.h"
24 #include "chrome/browser/fav_icon_helper.h" 23 #include "chrome/browser/fav_icon_helper.h"
25 #include "chrome/browser/find_bar_controller.h" 24 #include "chrome/browser/find_bar_controller.h"
26 #include "chrome/browser/find_notification_details.h" 25 #include "chrome/browser/find_notification_details.h"
27 #include "chrome/browser/jsmessage_box_client.h" 26 #include "chrome/browser/jsmessage_box_client.h"
28 #include "chrome/browser/password_manager/password_manager.h" 27 #include "chrome/browser/password_manager/password_manager.h"
29 #include "chrome/browser/printing/print_view_manager.h"
30 #include "chrome/browser/shell_dialogs.h" 28 #include "chrome/browser/shell_dialogs.h"
31 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 29 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
32 #include "chrome/browser/tab_contents/constrained_window.h" 30 #include "chrome/browser/tab_contents/constrained_window.h"
33 #include "chrome/browser/tab_contents/infobar_delegate.h" 31 #include "chrome/browser/tab_contents/infobar_delegate.h"
34 #include "chrome/browser/tab_contents/language_state.h" 32 #include "chrome/browser/tab_contents/language_state.h"
35 #include "chrome/browser/tab_contents/navigation_controller.h" 33 #include "chrome/browser/tab_contents/navigation_controller.h"
36 #include "chrome/browser/tab_contents/navigation_entry.h" 34 #include "chrome/browser/tab_contents/navigation_entry.h"
37 #include "chrome/browser/tab_contents/page_navigator.h" 35 #include "chrome/browser/tab_contents/page_navigator.h"
38 #include "chrome/browser/tab_contents/render_view_host_manager.h" 36 #include "chrome/browser/tab_contents/render_view_host_manager.h"
39 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" 37 #include "chrome/browser/tab_contents/tab_specific_content_settings.h"
40 #include "chrome/common/extensions/url_pattern.h"
41 #include "chrome/common/navigation_types.h"
42 #include "chrome/common/net/url_request_context_getter.h"
43 #include "chrome/common/notification_registrar.h" 38 #include "chrome/common/notification_registrar.h"
44 #include "chrome/common/property_bag.h" 39 #include "chrome/common/property_bag.h"
45 #include "chrome/common/renderer_preferences.h" 40 #include "chrome/common/renderer_preferences.h"
46 #include "chrome/common/translate_errors.h" 41 #include "chrome/common/translate_errors.h"
47 #include "gfx/native_widget_types.h" 42 #include "gfx/native_widget_types.h"
48 #include "gfx/rect.h" 43 #include "gfx/rect.h"
49 #include "net/base/load_states.h" 44 #include "net/base/load_states.h"
50 #include "webkit/glue/dom_operations.h" 45 #include "webkit/glue/dom_operations.h"
51 #include "webkit/glue/password_form.h" 46 #include "webkit/glue/password_form.h"
52 #include "webkit/glue/webpreferences.h"
53 47
54 namespace gfx { 48 namespace gfx {
55 class Rect; 49 class Rect;
56 class Size; 50 class Size;
57 } 51 }
58 52
59 namespace views { 53 namespace views {
60 class WindowDelegate; 54 class WindowDelegate;
61 } 55 }
62 56
63 namespace base { 57 namespace base {
64 class WaitableEvent; 58 class WaitableEvent;
65 } 59 }
66 60
61 namespace printing {
62 class PrintViewManager;
63 }
67 64
68 namespace IPC { 65 namespace IPC {
69 class Message; 66 class Message;
70 } 67 }
71 68
72 class AutocompleteHistoryManager; 69 class AutocompleteHistoryManager;
73 class AutoFillManager; 70 class AutoFillManager;
74 class BlockedPopupContainer; 71 class BlockedPopupContainer;
75 class DOMUI; 72 class DOMUI;
76 class DownloadItem; 73 class DownloadItem;
77 class Extension; 74 class Extension;
78 class GeolocationSettingsState; 75 class GeolocationSettingsState;
79 class LoadNotificationDetails; 76 class LoadNotificationDetails;
80 class OmniboxSearchHint; 77 class OmniboxSearchHint;
81 class PluginInstaller; 78 class PluginInstaller;
82 class Profile; 79 class Profile;
83 struct RendererPreferences; 80 struct RendererPreferences;
84 class RenderViewHost; 81 class RenderViewHost;
85 class SiteInstance; 82 class SiteInstance;
86 class SkBitmap; 83 class SkBitmap;
87 class TabContents; 84 class TabContents;
88 class TabContentsDelegate; 85 class TabContentsDelegate;
89 class TabContentsFactory; 86 class TabContentsFactory;
90 class TabContentsView; 87 class TabContentsView;
88 class URLPattern;
89 class URLRequestContextGetter;
91 struct ThumbnailScore; 90 struct ThumbnailScore;
92 struct ViewHostMsg_DidPrintPage_Params; 91 struct ViewHostMsg_DidPrintPage_Params;
93 struct ViewHostMsg_FrameNavigate_Params; 92 struct ViewHostMsg_FrameNavigate_Params;
94 struct ViewHostMsg_RunFileChooser_Params; 93 struct ViewHostMsg_RunFileChooser_Params;
94 struct WebPreferences;
95 95
96 // Describes what goes in the main content area of a tab. TabContents is 96 // Describes what goes in the main content area of a tab. TabContents is
97 // the only type of TabContents, and these should be merged together. 97 // the only type of TabContents, and these should be merged together.
98 class TabContents : public PageNavigator, 98 class TabContents : public PageNavigator,
99 public NotificationObserver, 99 public NotificationObserver,
100 public RenderViewHostDelegate, 100 public RenderViewHostDelegate,
101 public RenderViewHostDelegate::BrowserIntegration, 101 public RenderViewHostDelegate::BrowserIntegration,
102 public RenderViewHostDelegate::Resource, 102 public RenderViewHostDelegate::Resource,
103 public RenderViewHostManager::Delegate, 103 public RenderViewHostManager::Delegate,
104 public SelectFileDialog::Listener, 104 public SelectFileDialog::Listener,
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 // Manages creation and swapping of render views. 1047 // Manages creation and swapping of render views.
1048 RenderViewHostManager render_manager_; 1048 RenderViewHostManager render_manager_;
1049 1049
1050 // Stores random bits of data for others to associate with this object. 1050 // Stores random bits of data for others to associate with this object.
1051 PropertyBag property_bag_; 1051 PropertyBag property_bag_;
1052 1052
1053 // Registers and unregisters us for notifications. 1053 // Registers and unregisters us for notifications.
1054 NotificationRegistrar registrar_; 1054 NotificationRegistrar registrar_;
1055 1055
1056 // Handles print preview and print job for this contents. 1056 // Handles print preview and print job for this contents.
1057 printing::PrintViewManager printing_; 1057 scoped_ptr<printing::PrintViewManager> printing_;
1058 1058
1059 // SavePackage, lazily created. 1059 // SavePackage, lazily created.
1060 scoped_refptr<SavePackage> save_package_; 1060 scoped_refptr<SavePackage> save_package_;
1061 1061
1062 // AutocompleteHistoryManager, lazily created. 1062 // AutocompleteHistoryManager, lazily created.
1063 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 1063 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
1064 1064
1065 // AutoFillManager, lazily created. 1065 // AutoFillManager, lazily created.
1066 scoped_ptr<AutoFillManager> autofill_manager_; 1066 scoped_ptr<AutoFillManager> autofill_manager_;
1067 1067
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 1264
1265 // See description above setter. 1265 // See description above setter.
1266 bool closed_by_user_gesture_; 1266 bool closed_by_user_gesture_;
1267 1267
1268 // --------------------------------------------------------------------------- 1268 // ---------------------------------------------------------------------------
1269 1269
1270 DISALLOW_COPY_AND_ASSIGN(TabContents); 1270 DISALLOW_COPY_AND_ASSIGN(TabContents);
1271 }; 1271 };
1272 1272
1273 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1273 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698