| OLD | NEW |
| 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> |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 virtual std::wstring GetMessageBoxTitle(const GURL& frame_url, | 656 virtual std::wstring GetMessageBoxTitle(const GURL& frame_url, |
| 657 bool is_alert); | 657 bool is_alert); |
| 658 virtual gfx::NativeWindow GetMessageBoxRootWindow(); | 658 virtual gfx::NativeWindow GetMessageBoxRootWindow(); |
| 659 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, | 659 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, |
| 660 bool success, | 660 bool success, |
| 661 const std::wstring& prompt); | 661 const std::wstring& prompt); |
| 662 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes); | 662 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes); |
| 663 virtual TabContents* AsTabContents() { return this; } | 663 virtual TabContents* AsTabContents() { return this; } |
| 664 virtual ExtensionHost* AsExtensionHost() { return NULL; } | 664 virtual ExtensionHost* AsExtensionHost() { return NULL; } |
| 665 | 665 |
| 666 // The BookmarkDragDelegate is used to forward bookmark drag and drop events |
| 667 // to extensions. |
| 668 virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate(); |
| 669 |
| 670 // It is up to callers to call SetBookmarkDragDelegate(NULL) when |
| 671 // |bookmark_drag| is deleted since this class does not take ownership of |
| 672 // |bookmark_drag|. |
| 673 virtual void SetBookmarkDragDelegate( |
| 674 RenderViewHostDelegate::BookmarkDrag* bookmark_drag); |
| 675 |
| 666 private: | 676 private: |
| 667 friend class NavigationController; | 677 friend class NavigationController; |
| 668 // Used to access the child_windows_ (ConstrainedWindowList) for testing | 678 // Used to access the child_windows_ (ConstrainedWindowList) for testing |
| 669 // automation purposes. | 679 // automation purposes. |
| 670 friend class AutomationProvider; | 680 friend class AutomationProvider; |
| 671 | 681 |
| 672 FRIEND_TEST(TabContentsTest, NoJSMessageOnInterstitials); | 682 FRIEND_TEST(TabContentsTest, NoJSMessageOnInterstitials); |
| 673 FRIEND_TEST(TabContentsTest, UpdateTitle); | 683 FRIEND_TEST(TabContentsTest, UpdateTitle); |
| 674 FRIEND_TEST(TabContentsTest, CrossSiteCantPreemptAfterUnload); | 684 FRIEND_TEST(TabContentsTest, CrossSiteCantPreemptAfterUnload); |
| 675 | 685 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 | 1015 |
| 1006 // AutoFillManager, lazily created. | 1016 // AutoFillManager, lazily created. |
| 1007 scoped_ptr<AutoFillManager> autofill_manager_; | 1017 scoped_ptr<AutoFillManager> autofill_manager_; |
| 1008 | 1018 |
| 1009 // PasswordManager, lazily created. | 1019 // PasswordManager, lazily created. |
| 1010 scoped_ptr<PasswordManager> password_manager_; | 1020 scoped_ptr<PasswordManager> password_manager_; |
| 1011 | 1021 |
| 1012 // PluginInstaller, lazily created. | 1022 // PluginInstaller, lazily created. |
| 1013 scoped_ptr<PluginInstaller> plugin_installer_; | 1023 scoped_ptr<PluginInstaller> plugin_installer_; |
| 1014 | 1024 |
| 1025 // Handles drag and drop event forwarding to extensions. |
| 1026 BookmarkDrag* bookmark_drag_; |
| 1027 |
| 1015 // Handles downloading favicons. | 1028 // Handles downloading favicons. |
| 1016 FavIconHelper fav_icon_helper_; | 1029 FavIconHelper fav_icon_helper_; |
| 1017 | 1030 |
| 1018 // Dialog box used for choosing files to upload from file form fields. | 1031 // Dialog box used for choosing files to upload from file form fields. |
| 1019 scoped_refptr<SelectFileDialog> select_file_dialog_; | 1032 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 1020 | 1033 |
| 1021 // Cached web app info data. | 1034 // Cached web app info data. |
| 1022 webkit_glue::WebApplicationInfo web_app_info_; | 1035 webkit_glue::WebApplicationInfo web_app_info_; |
| 1023 | 1036 |
| 1024 // Data for loading state ---------------------------------------------------- | 1037 // Data for loading state ---------------------------------------------------- |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 | 1201 |
| 1189 // Information about the language the page is in and has been translated to. | 1202 // Information about the language the page is in and has been translated to. |
| 1190 LanguageState language_state_; | 1203 LanguageState language_state_; |
| 1191 | 1204 |
| 1192 // --------------------------------------------------------------------------- | 1205 // --------------------------------------------------------------------------- |
| 1193 | 1206 |
| 1194 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1207 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1195 }; | 1208 }; |
| 1196 | 1209 |
| 1197 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1210 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |