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

Unified Diff: components/safe_browsing/password_protection/password_protection_request.h

Issue 2878813002: Trigger protected password entry request on password reuse event. (Closed)
Patch Set: nit Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing/password_protection/password_protection_request.h
diff --git a/components/safe_browsing/password_protection/password_protection_request.h b/components/safe_browsing/password_protection/password_protection_request.h
index 321d95696047af262719daeaf6c0b8c4e9f03435..4995b3d4c3ea09db84a194db39e06d9500023187 100644
--- a/components/safe_browsing/password_protection/password_protection_request.h
+++ b/components/safe_browsing/password_protection/password_protection_request.h
@@ -43,6 +43,7 @@ class PasswordProtectionRequest : public base::RefCountedThreadSafe<
PasswordProtectionRequest(const GURL& main_frame_url,
const GURL& password_form_action,
const GURL& password_form_frame_url,
+ const std::string& saved_domain,
LoginReputationClientRequest::TriggerType type,
PasswordProtectionService* pps,
int request_timeout_in_ms);
@@ -65,6 +66,8 @@ class PasswordProtectionRequest : public base::RefCountedThreadSafe<
GURL main_frame_url() const { return main_frame_url_; }
+ LoginReputationClientRequest* request_proto() { return request_proto_.get(); }
+
private:
friend class base::RefCountedThreadSafe<PasswordProtectionRequest>;
friend struct content::BrowserThread::DeleteOnThread<
@@ -109,6 +112,9 @@ class PasswordProtectionRequest : public base::RefCountedThreadSafe<
// Frame url of the detected password form.
const GURL password_form_frame_url_;
+ // Domain on which a password is saved and gets reused.
+ const std::string saved_domain_;
+
// If this request is for unfamiliar login page or for a password reuse event.
const LoginReputationClientRequest::TriggerType request_type_;

Powered by Google App Engine
This is Rietveld 408576698