Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / components / autofill / content / renderer / test_password_generation_agent.h
blobf131a8f32ee033e71b9e2e460dee5028d0c80811
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_GENERATION_AGENT_H_
8 #include <vector>
10 #include "base/memory/scoped_vector.h"
11 #include "components/autofill/content/renderer/password_generation_agent.h"
12 #include "ipc/ipc_message.h"
14 namespace autofill {
16 class TestPasswordGenerationAgent : public PasswordGenerationAgent {
17 public:
18 TestPasswordGenerationAgent(content::RenderFrame* render_frame,
19 PasswordAutofillAgent* password_agent);
20 ~TestPasswordGenerationAgent() override;
22 // content::RenderFrameObserver implementation:
23 bool OnMessageReceived(const IPC::Message& message) override;
25 // PasswordGenreationAgent implementation:
26 // Always return true to allow loading of data URLs.
27 bool ShouldAnalyzeDocument() const override;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(TestPasswordGenerationAgent);
33 } // namespace autofill
35 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_