| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 13 | 14 |
| 14 class AutocompleteHistoryManager; | 15 class AutocompleteHistoryManager; |
| 15 class AutofillExternalDelegate; | 16 class AutofillExternalDelegate; |
| 16 class AutofillManager; | 17 class AutofillManager; |
| 17 class AutomationTabHelper; | 18 class AutomationTabHelper; |
| 18 class BasePanelBrowserTest; | 19 class BasePanelBrowserTest; |
| 19 class BlockedContentTabHelper; | 20 class BlockedContentTabHelper; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 friend class TabContentsTestHarness; | 134 friend class TabContentsTestHarness; |
| 134 friend class TabStripModel; | 135 friend class TabStripModel; |
| 135 friend class TabStripModelContentsCreator; | 136 friend class TabStripModelContentsCreator; |
| 136 friend class TranslationInfoBarTestContentsCreator; | 137 friend class TranslationInfoBarTestContentsCreator; |
| 137 friend class WebDialogGtk; | 138 friend class WebDialogGtk; |
| 138 friend class WebDialogWindowControllerTabContentsCreator; | 139 friend class WebDialogWindowControllerTabContentsCreator; |
| 139 friend class WebIntentInlineDispositionBrowserTest; | 140 friend class WebIntentInlineDispositionBrowserTest; |
| 140 friend class WebIntentPickerCocoa; | 141 friend class WebIntentPickerCocoa; |
| 141 friend class WebIntentPickerGtk; | 142 friend class WebIntentPickerGtk; |
| 142 friend class WebUITestContentsCreator; | 143 friend class WebUITestContentsCreator; |
| 144 FRIEND_TEST_ALL_PREFIXES(SessionRestoreTest, SessionStorageAfterTabReplace); |
| 143 | 145 |
| 144 static TabContents* CreateTabContents(content::WebContents* contents); | 146 static TabContents* CreateTabContents(content::WebContents* contents); |
| 145 static TabContents* CloneTabContents(TabContents* contents); | 147 static TabContents* CloneTabContents(TabContents* contents); |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 virtual ~TabContents(); | 150 virtual ~TabContents(); |
| 149 | 151 |
| 150 // Helper to retrieve the existing instance that owns a given WebContents. | 152 // Helper to retrieve the existing instance that owns a given WebContents. |
| 151 // Returns NULL if there is no such existing instance. | 153 // Returns NULL if there is no such existing instance. |
| 152 // NOTE: This is not intended for general use. It is intended for situations | 154 // NOTE: This is not intended for general use. It is intended for situations |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 308 |
| 307 // The supporting objects need to outlive the WebContents dtor (as they may | 309 // The supporting objects need to outlive the WebContents dtor (as they may |
| 308 // be called upon during its execution). As a result, this must come last | 310 // be called upon during its execution). As a result, this must come last |
| 309 // in the list. | 311 // in the list. |
| 310 scoped_ptr<content::WebContents> web_contents_; | 312 scoped_ptr<content::WebContents> web_contents_; |
| 311 | 313 |
| 312 DISALLOW_COPY_AND_ASSIGN(TabContents); | 314 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 313 }; | 315 }; |
| 314 | 316 |
| 315 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 317 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |