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

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: Sync 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DesktopNotificationHandlerForTC; 70 class DesktopNotificationHandlerForTC;
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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 int minimum_zoom_percent() const { return minimum_zoom_percent_; } 707 int minimum_zoom_percent() const { return minimum_zoom_percent_; }
704 int maximum_zoom_percent() const { return maximum_zoom_percent_; } 708 int maximum_zoom_percent() const { return maximum_zoom_percent_; }
705 709
706 int content_restrictions() const { return content_restrictions_; } 710 int content_restrictions() const { return content_restrictions_; }
707 711
708 AutocompleteHistoryManager* autocomplete_history_manager() { 712 AutocompleteHistoryManager* autocomplete_history_manager() {
709 return autocomplete_history_manager_.get(); 713 return autocomplete_history_manager_.get();
710 } 714 }
711 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } 715 AutoFillManager* autofill_manager() { return autofill_manager_.get(); }
712 716
717 safe_browsing::ClientSideDetectionHost* safebrowsing_detection_host() {
718 return safebrowsing_detection_host_.get();
719 }
720
713 protected: 721 protected:
714 // from RenderViewHostDelegate. 722 // from RenderViewHostDelegate.
715 virtual bool OnMessageReceived(const IPC::Message& message); 723 virtual bool OnMessageReceived(const IPC::Message& message);
716 724
717 private: 725 private:
718 friend class NavigationController; 726 friend class NavigationController;
719 // Used to access the child_windows_ (ConstrainedWindowList) for testing 727 // Used to access the child_windows_ (ConstrainedWindowList) for testing
720 // automation purposes. 728 // automation purposes.
721 friend class TestingAutomationProvider; 729 friend class TestingAutomationProvider;
722 730
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<DesktopNotificationHandlerForTC> desktop_notification_handler_; 1102 scoped_ptr<DesktopNotificationHandlerForTC> 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698