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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 namespace prerender { | 52 namespace prerender { |
53 class PrerenderManager; | 53 class PrerenderManager; |
54 class PrerenderPLTRecorder; | 54 class PrerenderPLTRecorder; |
55 } | 55 } |
56 | 56 |
57 namespace printing { | 57 namespace printing { |
58 class PrintPreviewMessageHandler; | 58 class PrintPreviewMessageHandler; |
59 class PrintViewManager; | 59 class PrintViewManager; |
60 } | 60 } |
61 | 61 |
| 62 namespace safe_browsing { |
| 63 class ClientSideDetectionHost; |
| 64 } |
| 65 |
62 class AutocompleteHistoryManager; | 66 class AutocompleteHistoryManager; |
63 class AutoFillManager; | 67 class AutoFillManager; |
64 class BlockedContentContainer; | 68 class BlockedContentContainer; |
65 class WebUI; | 69 class WebUI; |
66 class DesktopNotificationHandler; | 70 class DesktopNotificationHandler; |
67 class DownloadItem; | 71 class DownloadItem; |
68 class Extension; | 72 class Extension; |
69 class FileSelectHelper; | 73 class FileSelectHelper; |
70 class InfoBarDelegate; | 74 class InfoBarDelegate; |
71 class LoadNotificationDetails; | 75 class LoadNotificationDetails; |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 int minimum_zoom_percent() const { return minimum_zoom_percent_; } | 710 int minimum_zoom_percent() const { return minimum_zoom_percent_; } |
707 int maximum_zoom_percent() const { return maximum_zoom_percent_; } | 711 int maximum_zoom_percent() const { return maximum_zoom_percent_; } |
708 | 712 |
709 int content_restrictions() const { return content_restrictions_; } | 713 int content_restrictions() const { return content_restrictions_; } |
710 | 714 |
711 AutocompleteHistoryManager* autocomplete_history_manager() { | 715 AutocompleteHistoryManager* autocomplete_history_manager() { |
712 return autocomplete_history_manager_.get(); | 716 return autocomplete_history_manager_.get(); |
713 } | 717 } |
714 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } | 718 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } |
715 | 719 |
| 720 safe_browsing::ClientSideDetectionHost* safebrowsing_detection_host() { |
| 721 return safebrowsing_detection_host_.get(); |
| 722 } |
| 723 |
716 protected: | 724 protected: |
717 // from RenderViewHostDelegate. | 725 // from RenderViewHostDelegate. |
718 virtual bool OnMessageReceived(const IPC::Message& message); | 726 virtual bool OnMessageReceived(const IPC::Message& message); |
719 | 727 |
720 private: | 728 private: |
721 friend class NavigationController; | 729 friend class NavigationController; |
722 // Used to access the child_windows_ (ConstrainedWindowList) for testing | 730 // Used to access the child_windows_ (ConstrainedWindowList) for testing |
723 // automation purposes. | 731 // automation purposes. |
724 friend class TestingAutomationProvider; | 732 friend class TestingAutomationProvider; |
725 | 733 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 | 1094 |
1087 // Cached web app icon. | 1095 // Cached web app icon. |
1088 SkBitmap app_icon_; | 1096 SkBitmap app_icon_; |
1089 | 1097 |
1090 // RenderViewHost::ContentSettingsDelegate. | 1098 // RenderViewHost::ContentSettingsDelegate. |
1091 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; | 1099 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; |
1092 | 1100 |
1093 // Handles desktop notification IPCs. | 1101 // Handles desktop notification IPCs. |
1094 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; | 1102 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; |
1095 | 1103 |
| 1104 // Handles IPCs related to SafeBrowsing client-side phishing detection. |
| 1105 scoped_ptr<safe_browsing::ClientSideDetectionHost> |
| 1106 safebrowsing_detection_host_; |
1096 | 1107 |
1097 // Data for loading state ---------------------------------------------------- | 1108 // Data for loading state ---------------------------------------------------- |
1098 | 1109 |
1099 // Indicates whether we're currently loading a resource. | 1110 // Indicates whether we're currently loading a resource. |
1100 bool is_loading_; | 1111 bool is_loading_; |
1101 | 1112 |
1102 // Indicates if the tab is considered crashed. | 1113 // Indicates if the tab is considered crashed. |
1103 base::TerminationStatus crashed_status_; | 1114 base::TerminationStatus crashed_status_; |
1104 int crashed_error_code_; | 1115 int crashed_error_code_; |
1105 | 1116 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 ObserverList<TabContentsObserver> observers_; | 1253 ObserverList<TabContentsObserver> observers_; |
1243 | 1254 |
1244 // Content restrictions, used to disable print/copy etc based on content's | 1255 // Content restrictions, used to disable print/copy etc based on content's |
1245 // (full-page plugins for now only) permissions. | 1256 // (full-page plugins for now only) permissions. |
1246 int content_restrictions_; | 1257 int content_restrictions_; |
1247 | 1258 |
1248 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1259 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1249 }; | 1260 }; |
1250 | 1261 |
1251 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1262 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |