| 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 CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ |
| 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ | 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // RenderViewObserver: | 33 // RenderViewObserver: |
| 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // RenderViewObserver: | 37 // RenderViewObserver: |
| 38 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; | 38 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
| 39 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; | 39 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; |
| 40 | 40 |
| 41 // Message handlers. | 41 // Message handlers. |
| 42 void OnPasswordAccepted(const string16& password); | 42 void OnPasswordAccepted(const string16& password); |
| 43 void OnPasswordSyncEnabled(bool enabled); | 43 void OnPasswordGenerationEnabled(bool enabled); |
| 44 | 44 |
| 45 // True if the browser believes that generating passwords is okay for this | 45 // True if password generation is enabled for the profile associated |
| 46 // renderer. | 46 // with this renderer. |
| 47 bool enabled_; | 47 bool enabled_; |
| 48 | 48 |
| 49 std::pair<WebKit::WebInputElement, | 49 std::pair<WebKit::WebInputElement, |
| 50 std::vector<WebKit::WebInputElement> > account_creation_elements_; | 50 std::vector<WebKit::WebInputElement> > account_creation_elements_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationManager); | 52 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationManager); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace autofill | 55 } // namespace autofill |
| 56 | 56 |
| 57 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ | 57 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_MANAGER_H_ |
| OLD | NEW |