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

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_host.h

Issue 1488923002: Remove unused DidPageReceiveSafeBrowsingMatch code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void OnSafeBrowsingHit( 52 void OnSafeBrowsingHit(
53 const SafeBrowsingUIManager::UnsafeResource& resource) override; 53 const SafeBrowsingUIManager::UnsafeResource& resource) override;
54 54
55 // Called when the SafeBrowsingService finds a match on the SB lists. 55 // Called when the SafeBrowsingService finds a match on the SB lists.
56 // Called on the UI thread. Called even if the resource is whitelisted. 56 // Called on the UI thread. Called even if the resource is whitelisted.
57 void OnSafeBrowsingMatch( 57 void OnSafeBrowsingMatch(
58 const SafeBrowsingUIManager::UnsafeResource& resource) override; 58 const SafeBrowsingUIManager::UnsafeResource& resource) override;
59 59
60 virtual scoped_refptr<SafeBrowsingDatabaseManager> database_manager(); 60 virtual scoped_refptr<SafeBrowsingDatabaseManager> database_manager();
61 61
62 // Returns whether the current page contains a malware or phishing safe
63 // browsing match.
64 bool DidPageReceiveSafeBrowsingMatch() const;
65
66 protected: 62 protected:
67 explicit ClientSideDetectionHost(content::WebContents* tab); 63 explicit ClientSideDetectionHost(content::WebContents* tab);
68 64
69 // From content::WebContentsObserver. 65 // From content::WebContentsObserver.
70 void WebContentsDestroyed() override; 66 void WebContentsDestroyed() override;
71 67
72 // Used for testing. 68 // Used for testing.
73 void set_safe_browsing_managers( 69 void set_safe_browsing_managers(
74 SafeBrowsingUIManager* ui_manager, 70 SafeBrowsingUIManager* ui_manager,
75 SafeBrowsingDatabaseManager* database_manager); 71 SafeBrowsingDatabaseManager* database_manager);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; 166 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_;
171 167
172 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_; 168 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_;
173 169
174 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); 170 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
175 }; 171 };
176 172
177 } // namespace safe_browsing 173 } // namespace safe_browsing
178 174
179 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 175 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698