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

Side by Side Diff: components/autofill/content/renderer/test_password_generation_agent.h

Issue 2216463002: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit from Vaclav Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "components/autofill/content/renderer/password_generation_agent.h" 12 #include "components/autofill/content/renderer/password_generation_agent.h"
13 #include "ipc/ipc_message.h"
14 13
15 namespace autofill { 14 namespace autofill {
16 15
17 class TestPasswordGenerationAgent : public PasswordGenerationAgent { 16 class TestPasswordGenerationAgent : public PasswordGenerationAgent {
18 public: 17 public:
19 TestPasswordGenerationAgent(content::RenderFrame* render_frame, 18 TestPasswordGenerationAgent(content::RenderFrame* render_frame,
20 PasswordAutofillAgent* password_agent); 19 PasswordAutofillAgent* password_agent);
21 ~TestPasswordGenerationAgent() override; 20 ~TestPasswordGenerationAgent() override;
22 21
23 // PasswordGenreationAgent implementation: 22 // PasswordGenreationAgent implementation:
24 // Always return true to allow loading of data URLs. 23 // Always return true to allow loading of data URLs.
25 bool ShouldAnalyzeDocument() const override; 24 bool ShouldAnalyzeDocument() const override;
26 25
27 private: 26 private:
28 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent); 27 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent);
29 }; 28 };
30 29
31 } // namespace autofill 30 } // namespace autofill
32 31
33 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ 32 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698