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