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

Unified Diff: components/autofill/content/renderer/autofill_agent.h

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 11 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/autofill/content/renderer/autofill_agent.h
diff --git a/components/autofill/content/renderer/autofill_agent.h b/components/autofill/content/renderer/autofill_agent.h
index 7bc7f60d6110810df35f687d99a6771da04a487c..cb4df0317f580c4c423bf3eae2749a7278ddb4e1 100644
--- a/components/autofill/content/renderer/autofill_agent.h
+++ b/components/autofill/content/renderer/autofill_agent.h
@@ -32,6 +32,7 @@ struct FormData;
struct FormFieldData;
struct WebElementDescriptor;
class PasswordAutofillAgent;
+class PasswordGenerationAgent;
// AutofillAgent deals with Autofill related communications between WebKit and
// the browser. There is one AutofillAgent per RenderView.
@@ -46,8 +47,11 @@ class AutofillAgent : public content::RenderViewObserver,
public blink::WebAutofillClient {
public:
// PasswordAutofillAgent is guaranteed to outlive AutofillAgent.
+ // PasswordGenerationAgent may be NULL. If it is not, then it is also
+ // guaranteed to outlive AutofillAgent.
AutofillAgent(content::RenderView* render_view,
- PasswordAutofillAgent* password_autofill_manager);
+ PasswordAutofillAgent* password_autofill_manager,
+ PasswordGenerationAgent* password_generation_agent);
virtual ~AutofillAgent();
private:
@@ -174,7 +178,8 @@ class AutofillAgent : public content::RenderViewObserver,
FormCache form_cache_;
- PasswordAutofillAgent* password_autofill_agent_; // WEAK reference.
+ PasswordAutofillAgent* password_autofill_agent_; // Weak reference.
+ PasswordGenerationAgent* password_generation_agent_; // Weak reference.
// The ID of the last request sent for form field Autofill. Used to ignore
// out of date responses.
« no previous file with comments | « components/autofill/content/common/autofill_messages.h ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698