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

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

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/printing/print_view_manager.h" 14 #include "chrome/browser/printing/print_view_manager.h"
15 #include "content/browser/tab_contents/tab_contents.h" 15 #include "content/browser/tab_contents/tab_contents.h"
16 #include "content/browser/tab_contents/tab_contents_observer.h" 16 #include "content/browser/tab_contents/tab_contents_observer.h"
17 #include "content/common/notification_registrar.h" 17 #include "content/common/notification_registrar.h"
18 18
19 namespace prerender { 19 namespace prerender {
20 class PrerenderObserver; 20 class PrerenderObserver;
21 } 21 }
22 22
23 namespace printing { 23 namespace printing {
24 class PrintPreviewMessageHandler; 24 class PrintPreviewMessageHandler;
25 } 25 }
26 26
27 class AutocompleteHistoryManager; 27 class AutocompleteHistoryManager;
28 class AutofillManager; 28 class AutofillManager;
29 class AutomationTabHelper; 29 class AutomationTabHelper;
30 class ContentSettingsTabHelper;
30 class DownloadTabHelper; 31 class DownloadTabHelper;
31 class Extension; 32 class Extension;
32 class ExtensionTabHelper; 33 class ExtensionTabHelper;
33 class ExtensionWebNavigationTabObserver; 34 class ExtensionWebNavigationTabObserver;
34 class FileSelectObserver; 35 class FileSelectObserver;
35 class FindTabHelper; 36 class FindTabHelper;
36 class NavigationController; 37 class NavigationController;
37 class PasswordManager; 38 class PasswordManager;
38 class PasswordManagerDelegate; 39 class PasswordManagerDelegate;
39 class SearchEngineTabHelper; 40 class SearchEngineTabHelper;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return autocomplete_history_manager_.get(); 100 return autocomplete_history_manager_.get();
100 } 101 }
101 102
102 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 103 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
103 104
104 // Used only for testing/automation. 105 // Used only for testing/automation.
105 AutomationTabHelper* automation_tab_helper() { 106 AutomationTabHelper* automation_tab_helper() {
106 return automation_tab_helper_.get(); 107 return automation_tab_helper_.get();
107 } 108 }
108 109
110 ContentSettingsTabHelper* content_settings_tab_helper() {
111 return content_settings_tab_helper_.get();
112 }
113
109 DownloadTabHelper* download_tab_helper() { 114 DownloadTabHelper* download_tab_helper() {
110 return download_tab_helper_.get(); 115 return download_tab_helper_.get();
111 } 116 }
112 117
113 ExtensionTabHelper* extension_tab_helper() { 118 ExtensionTabHelper* extension_tab_helper() {
114 return extension_tab_helper_.get(); 119 return extension_tab_helper_.get();
115 } 120 }
116 121
117 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 122 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
118 123
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Whether the current URL is starred. 180 // Whether the current URL is starred.
176 bool is_starred_; 181 bool is_starred_;
177 182
178 // Tab Helpers --------------------------------------------------------------- 183 // Tab Helpers ---------------------------------------------------------------
179 // (These provide API for callers and have a getter function listed in the 184 // (These provide API for callers and have a getter function listed in the
180 // "Tab Helpers" section in the member functions area, above.) 185 // "Tab Helpers" section in the member functions area, above.)
181 186
182 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 187 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
183 scoped_ptr<AutofillManager> autofill_manager_; 188 scoped_ptr<AutofillManager> autofill_manager_;
184 scoped_ptr<AutomationTabHelper> automation_tab_helper_; 189 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
190 scoped_ptr<ContentSettingsTabHelper> content_settings_tab_helper_;
185 scoped_ptr<DownloadTabHelper> download_tab_helper_; 191 scoped_ptr<DownloadTabHelper> download_tab_helper_;
186 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; 192 scoped_ptr<ExtensionTabHelper> extension_tab_helper_;
187 scoped_ptr<FindTabHelper> find_tab_helper_; 193 scoped_ptr<FindTabHelper> find_tab_helper_;
188 194
189 // PasswordManager and its delegate. The delegate must outlive the manager, 195 // PasswordManager and its delegate. The delegate must outlive the manager,
190 // per documentation in password_manager.h. 196 // per documentation in password_manager.h.
191 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; 197 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_;
192 scoped_ptr<PasswordManager> password_manager_; 198 scoped_ptr<PasswordManager> password_manager_;
193 199
194 // Handles print job for this contents. 200 // Handles print job for this contents.
(...skipping 15 matching lines...) Expand all
210 216
211 // The supporting objects need to outlive the TabContents dtor (as they may 217 // The supporting objects need to outlive the TabContents dtor (as they may
212 // be called upon during its execution). As a result, this must come last 218 // be called upon during its execution). As a result, this must come last
213 // in the list. 219 // in the list.
214 scoped_ptr<TabContents> tab_contents_; 220 scoped_ptr<TabContents> tab_contents_;
215 221
216 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 222 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
217 }; 223 };
218 224
219 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 225 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698