OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 // This file was contains some repeated code from | 8 // This file was contains some repeated code from |
9 // chrome/renderer/autofill/password_autofill_manager because as we move to the | 9 // chrome/renderer/autofill/password_autofill_manager because as we move to the |
10 // new Autofill UI we needs these functions in both the browser and renderer. | 10 // new Autofill UI we needs these functions in both the browser and renderer. |
11 // Once the move is completed the repeated code in the renderer half should be | 11 // Once the move is completed the repeated code in the renderer half should be |
12 // removed. | 12 // removed. |
13 // http://crbug.com/51644 | 13 // http://crbug.com/51644 |
14 | 14 |
15 #include <map> | 15 #include <map> |
16 | 16 |
17 #include "components/autofill/common/password_form_fill_data.h" | 17 #include "components/autofill/core/common/password_form_fill_data.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class WebContents; | 20 class WebContents; |
21 } // namespace content | 21 } // namespace content |
22 | 22 |
23 namespace autofill { | 23 namespace autofill { |
24 | 24 |
25 // This class is responsible for filling password forms. | 25 // This class is responsible for filling password forms. |
26 class PasswordAutofillManager { | 26 class PasswordAutofillManager { |
27 public: | 27 public: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // to just store RenderViewHost on creation, it becomes invalid once we start | 66 // to just store RenderViewHost on creation, it becomes invalid once we start |
67 // using it. By having the WebContents we can always get a valid pointer. | 67 // using it. By having the WebContents we can always get a valid pointer. |
68 content::WebContents* web_contents_; // Weak reference. | 68 content::WebContents* web_contents_; // Weak reference. |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); | 70 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace autofill | 73 } // namespace autofill |
74 | 74 |
75 #endif // COMPONENTS_AUTOFILL_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ | 75 #endif // COMPONENTS_AUTOFILL_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ |
OLD | NEW |