OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <map> | 10 #include <map> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/tab_contents/constrained_window.h" | 26 #include "chrome/browser/tab_contents/constrained_window.h" |
27 #include "chrome/browser/tab_contents/infobar_delegate.h" | 27 #include "chrome/browser/tab_contents/infobar_delegate.h" |
28 #include "chrome/browser/tab_contents/navigation_controller.h" | 28 #include "chrome/browser/tab_contents/navigation_controller.h" |
29 #include "chrome/browser/tab_contents/page_navigator.h" | 29 #include "chrome/browser/tab_contents/page_navigator.h" |
30 #include "chrome/browser/tab_contents/render_view_host_manager.h" | 30 #include "chrome/browser/tab_contents/render_view_host_manager.h" |
31 #include "chrome/common/gears_api.h" | 31 #include "chrome/common/gears_api.h" |
32 #include "chrome/common/navigation_types.h" | 32 #include "chrome/common/navigation_types.h" |
33 #include "chrome/common/notification_registrar.h" | 33 #include "chrome/common/notification_registrar.h" |
34 #include "chrome/common/page_action.h" | 34 #include "chrome/common/page_action.h" |
35 #include "chrome/common/property_bag.h" | 35 #include "chrome/common/property_bag.h" |
| 36 #include "chrome/common/renderer_preferences.h" |
36 #include "net/base/load_states.h" | 37 #include "net/base/load_states.h" |
37 #include "webkit/glue/password_form.h" | 38 #include "webkit/glue/password_form.h" |
38 #include "webkit/glue/webpreferences.h" | 39 #include "webkit/glue/webpreferences.h" |
39 | 40 |
40 #if defined(OS_MACOSX) || defined(OS_LINUX) | 41 #if defined(OS_MACOSX) || defined(OS_LINUX) |
41 // Remove when we've finished porting the supporting classes. | 42 // Remove when we've finished porting the supporting classes. |
42 #include "chrome/common/temp_scaffolding_stubs.h" | 43 #include "chrome/common/temp_scaffolding_stubs.h" |
43 #elif defined(OS_WIN) | 44 #elif defined(OS_WIN) |
44 #include "chrome/browser/printing/print_view_manager.h" | 45 #include "chrome/browser/printing/print_view_manager.h" |
45 #endif | 46 #endif |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 558 } |
558 | 559 |
559 void WindowMoveOrResizeStarted() { | 560 void WindowMoveOrResizeStarted() { |
560 render_view_host()->WindowMoveOrResizeStarted(); | 561 render_view_host()->WindowMoveOrResizeStarted(); |
561 } | 562 } |
562 | 563 |
563 BlockedPopupContainer* blocked_popup_container() const { | 564 BlockedPopupContainer* blocked_popup_container() const { |
564 return blocked_popups_; | 565 return blocked_popups_; |
565 } | 566 } |
566 | 567 |
| 568 RendererPreferences* GetMutableRendererPrefs() { |
| 569 return &renderer_preferences_; |
| 570 } |
| 571 |
567 private: | 572 private: |
568 friend class NavigationController; | 573 friend class NavigationController; |
569 // Used to access the child_windows_ (ConstrainedWindowList) for testing | 574 // Used to access the child_windows_ (ConstrainedWindowList) for testing |
570 // automation purposes. | 575 // automation purposes. |
571 friend class AutomationProvider; | 576 friend class AutomationProvider; |
572 friend class BlockedPopupContainerTest; | 577 friend class BlockedPopupContainerTest; |
573 friend class BlockedPopupContainerControllerTest; | 578 friend class BlockedPopupContainerControllerTest; |
574 | 579 |
575 FRIEND_TEST(BlockedPopupContainerTest, TestReposition); | 580 FRIEND_TEST(BlockedPopupContainerTest, TestReposition); |
576 FRIEND_TEST(TabContentsTest, NoJSMessageOnInterstitials); | 581 FRIEND_TEST(TabContentsTest, NoJSMessageOnInterstitials); |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 ScopedHandle message_box_active_; | 1076 ScopedHandle message_box_active_; |
1072 #endif | 1077 #endif |
1073 | 1078 |
1074 // The time that the last javascript message was dismissed. | 1079 // The time that the last javascript message was dismissed. |
1075 base::TimeTicks last_javascript_message_dismissal_; | 1080 base::TimeTicks last_javascript_message_dismissal_; |
1076 | 1081 |
1077 // True if the user has decided to block future javascript messages. This is | 1082 // True if the user has decided to block future javascript messages. This is |
1078 // reset on navigations to false on navigations. | 1083 // reset on navigations to false on navigations. |
1079 bool suppress_javascript_messages_; | 1084 bool suppress_javascript_messages_; |
1080 | 1085 |
| 1086 // Settings that get passed to the renderer process. |
| 1087 RendererPreferences renderer_preferences_; |
| 1088 |
1081 // --------------------------------------------------------------------------- | 1089 // --------------------------------------------------------------------------- |
1082 | 1090 |
1083 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1091 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1084 }; | 1092 }; |
1085 | 1093 |
1086 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1094 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |