OLD | NEW |
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" |
13 | 14 |
14 namespace autofill { | 15 namespace autofill { |
15 | 16 |
16 class TestPasswordGenerationAgent : public PasswordGenerationAgent { | 17 class TestPasswordGenerationAgent : public PasswordGenerationAgent { |
17 public: | 18 public: |
18 TestPasswordGenerationAgent(content::RenderFrame* render_frame, | 19 TestPasswordGenerationAgent(content::RenderFrame* render_frame, |
19 PasswordAutofillAgent* password_agent); | 20 PasswordAutofillAgent* password_agent); |
20 ~TestPasswordGenerationAgent() override; | 21 ~TestPasswordGenerationAgent() override; |
21 | 22 |
22 // PasswordGenreationAgent implementation: | 23 // PasswordGenreationAgent implementation: |
23 // Always return true to allow loading of data URLs. | 24 // Always return true to allow loading of data URLs. |
24 bool ShouldAnalyzeDocument() const override; | 25 bool ShouldAnalyzeDocument() const override; |
25 | 26 |
26 private: | 27 private: |
27 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent); | 28 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent); |
28 }; | 29 }; |
29 | 30 |
30 } // namespace autofill | 31 } // namespace autofill |
31 | 32 |
32 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ | 33 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |