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

Side by Side Diff: components/safe_browsing/password_protection/password_protection_request.h

Issue 2905343002: Show interstitial on a password on focus ping with PHISHING verdict. (Closed)
Patch Set: nit Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_
6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_ 6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Cancels the current request. |timed_out| indicates if this cancellation is 60 // Cancels the current request. |timed_out| indicates if this cancellation is
61 // due to timeout. This function will call Finish() to destroy |this|. 61 // due to timeout. This function will call Finish() to destroy |this|.
62 void Cancel(bool timed_out); 62 void Cancel(bool timed_out);
63 63
64 // net::URLFetcherDelegate override. 64 // net::URLFetcherDelegate override.
65 // Processes the received response. 65 // Processes the received response.
66 void OnURLFetchComplete(const net::URLFetcher* source) override; 66 void OnURLFetchComplete(const net::URLFetcher* source) override;
67 67
68 GURL main_frame_url() const { return main_frame_url_; } 68 GURL main_frame_url() const { return main_frame_url_; }
69 69
70 LoginReputationClientRequest* request_proto() { return request_proto_.get(); } 70 const LoginReputationClientRequest* request_proto() const {
71 return request_proto_.get();
72 }
73
74 content::WebContents* web_contents() const { return web_contents_; }
75
76 LoginReputationClientRequest::TriggerType request_type() const {
77 return request_type_;
78 }
71 79
72 private: 80 private:
73 friend class base::RefCountedThreadSafe<PasswordProtectionRequest>; 81 friend class base::RefCountedThreadSafe<PasswordProtectionRequest>;
74 friend struct content::BrowserThread::DeleteOnThread< 82 friend struct content::BrowserThread::DeleteOnThread<
75 content::BrowserThread::UI>; 83 content::BrowserThread::UI>;
76 friend class base::DeleteHelper<PasswordProtectionRequest>; 84 friend class base::DeleteHelper<PasswordProtectionRequest>;
77 ~PasswordProtectionRequest() override; 85 ~PasswordProtectionRequest() override;
78 86
79 void CheckWhitelistOnUIThread(); 87 void CheckWhitelistOnUIThread();
80 88
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Needed for canceling tasks posted to different threads. 149 // Needed for canceling tasks posted to different threads.
142 base::CancelableTaskTracker tracker_; 150 base::CancelableTaskTracker tracker_;
143 151
144 base::WeakPtrFactory<PasswordProtectionRequest> weakptr_factory_; 152 base::WeakPtrFactory<PasswordProtectionRequest> weakptr_factory_;
145 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionRequest); 153 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionRequest);
146 }; 154 };
147 155
148 } // namespace safe_browsing 156 } // namespace safe_browsing
149 157
150 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQU EST_H_ 158 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQU EST_H_
OLDNEW
« no previous file with comments | « components/safe_browsing/csd.proto ('k') | components/safe_browsing/password_protection/password_protection_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698