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