Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 6014003: Intergration of the client-side phishing detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dont DCHECK because some unit tests are failing. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 namespace history { 48 namespace history {
49 class HistoryAddPageArgs; 49 class HistoryAddPageArgs;
50 } 50 }
51 51
52 namespace printing { 52 namespace printing {
53 class PrintPreviewMessageHandler; 53 class PrintPreviewMessageHandler;
54 class PrintViewManager; 54 class PrintViewManager;
55 } 55 }
56 56
57 namespace safe_browsing {
58 class ClientSideDetectionHost;
59 }
60
57 class AutocompleteHistoryManager; 61 class AutocompleteHistoryManager;
58 class AutoFillManager; 62 class AutoFillManager;
59 class BlockedContentContainer; 63 class BlockedContentContainer;
60 class WebUI; 64 class WebUI;
61 class DesktopNotificationHandler; 65 class DesktopNotificationHandler;
62 class DownloadItem; 66 class DownloadItem;
63 class Extension; 67 class Extension;
64 class FileSelectHelper; 68 class FileSelectHelper;
65 class InfoBarDelegate; 69 class InfoBarDelegate;
66 class LoadNotificationDetails; 70 class LoadNotificationDetails;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 int minimum_zoom_percent() const { return minimum_zoom_percent_; } 706 int minimum_zoom_percent() const { return minimum_zoom_percent_; }
703 int maximum_zoom_percent() const { return maximum_zoom_percent_; } 707 int maximum_zoom_percent() const { return maximum_zoom_percent_; }
704 708
705 int content_restrictions() const { return content_restrictions_; } 709 int content_restrictions() const { return content_restrictions_; }
706 710
707 AutocompleteHistoryManager* autocomplete_history_manager() { 711 AutocompleteHistoryManager* autocomplete_history_manager() {
708 return autocomplete_history_manager_.get(); 712 return autocomplete_history_manager_.get();
709 } 713 }
710 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } 714 AutoFillManager* autofill_manager() { return autofill_manager_.get(); }
711 715
716 safe_browsing::ClientSideDetectionHost* safebrowsing_detection_host() {
717 return safebrowsing_detection_host_.get();
718 }
719
712 protected: 720 protected:
713 // from RenderViewHostDelegate. 721 // from RenderViewHostDelegate.
714 virtual bool OnMessageReceived(const IPC::Message& message); 722 virtual bool OnMessageReceived(const IPC::Message& message);
715 723
716 private: 724 private:
717 friend class NavigationController; 725 friend class NavigationController;
718 // Used to access the child_windows_ (ConstrainedWindowList) for testing 726 // Used to access the child_windows_ (ConstrainedWindowList) for testing
719 // automation purposes. 727 // automation purposes.
720 friend class TestingAutomationProvider; 728 friend class TestingAutomationProvider;
721 729
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 1100
1093 // Cached web app icon. 1101 // Cached web app icon.
1094 SkBitmap app_icon_; 1102 SkBitmap app_icon_;
1095 1103
1096 // RenderViewHost::ContentSettingsDelegate. 1104 // RenderViewHost::ContentSettingsDelegate.
1097 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; 1105 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_;
1098 1106
1099 // Handles desktop notification IPCs. 1107 // Handles desktop notification IPCs.
1100 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; 1108 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_;
1101 1109
1110 // Handles IPCs related to SafeBrowsing client-side phishing detection.
1111 scoped_ptr<safe_browsing::ClientSideDetectionHost>
1112 safebrowsing_detection_host_;
1102 1113
1103 // Data for loading state ---------------------------------------------------- 1114 // Data for loading state ----------------------------------------------------
1104 1115
1105 // Indicates whether we're currently loading a resource. 1116 // Indicates whether we're currently loading a resource.
1106 bool is_loading_; 1117 bool is_loading_;
1107 1118
1108 // Indicates if the tab is considered crashed. 1119 // Indicates if the tab is considered crashed.
1109 base::TerminationStatus crashed_status_; 1120 base::TerminationStatus crashed_status_;
1110 int crashed_error_code_; 1121 int crashed_error_code_;
1111 1122
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 ObserverList<TabContentsObserver> observers_; 1259 ObserverList<TabContentsObserver> observers_;
1249 1260
1250 // Content restrictions, used to disable print/copy etc based on content's 1261 // Content restrictions, used to disable print/copy etc based on content's
1251 // (full-page plugins for now only) permissions. 1262 // (full-page plugins for now only) permissions.
1252 int content_restrictions_; 1263 int content_restrictions_;
1253 1264
1254 DISALLOW_COPY_AND_ASSIGN(TabContents); 1265 DISALLOW_COPY_AND_ASSIGN(TabContents);
1255 }; 1266 };
1256 1267
1257 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1268 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698