OLD | NEW |
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 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" | 17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" |
17 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
18 #include "content/browser/tab_contents/tab_contents_observer.h" | 19 #include "content/browser/tab_contents/tab_contents_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
20 | 21 |
21 class AutocompleteHistoryManager; | 22 class AutocompleteHistoryManager; |
22 class AutofillManager; | 23 class AutofillManager; |
23 class AutofillExternalDelegate; | 24 class AutofillExternalDelegate; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 268 |
268 // Shows an info-bar to users when they search from a known search engine and | 269 // Shows an info-bar to users when they search from a known search engine and |
269 // have never used the omnibox for search before. | 270 // have never used the omnibox for search before. |
270 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 271 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
271 | 272 |
272 // Tab Helpers --------------------------------------------------------------- | 273 // Tab Helpers --------------------------------------------------------------- |
273 // (These provide API for callers and have a getter function listed in the | 274 // (These provide API for callers and have a getter function listed in the |
274 // "Tab Helpers" section in the member functions area, above.) | 275 // "Tab Helpers" section in the member functions area, above.) |
275 | 276 |
276 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 277 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
277 scoped_ptr<AutofillManager> autofill_manager_; | 278 scoped_refptr<AutofillManager> autofill_manager_; |
278 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 279 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
279 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 280 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
280 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 281 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
281 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | 282 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
282 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; | 283 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
283 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; | 284 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; |
284 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 285 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
285 scoped_ptr<FindTabHelper> find_tab_helper_; | 286 scoped_ptr<FindTabHelper> find_tab_helper_; |
286 scoped_ptr<HistoryTabHelper> history_tab_helper_; | 287 scoped_ptr<HistoryTabHelper> history_tab_helper_; |
287 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; | 288 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 333 |
333 // The supporting objects need to outlive the TabContents dtor (as they may | 334 // The supporting objects need to outlive the TabContents dtor (as they may |
334 // be called upon during its execution). As a result, this must come last | 335 // be called upon during its execution). As a result, this must come last |
335 // in the list. | 336 // in the list. |
336 scoped_ptr<TabContents> tab_contents_; | 337 scoped_ptr<TabContents> tab_contents_; |
337 | 338 |
338 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 339 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
339 }; | 340 }; |
340 | 341 |
341 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 342 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |