Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / autofill / content / renderer / test_password_autofill_agent.h
blobafa8d7885e9dd6a0330177f50f2a55cc0cb208dd
1 // Copyright 2013 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_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
8 #include "components/autofill/content/renderer/password_autofill_agent.h"
10 namespace autofill {
12 class TestPasswordAutofillAgent : public PasswordAutofillAgent {
13 public:
14 explicit TestPasswordAutofillAgent(content::RenderFrame* render_frame);
15 ~TestPasswordAutofillAgent() override;
17 private:
18 // Always returns true. This allows browser tests with "data: " URL scheme to
19 // work with the password manager.
20 // PasswordAutofillAgent:
21 bool OriginCanAccessPasswordManager(
22 const blink::WebSecurityOrigin& origin) override;
25 } // namespace autofill
27 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_