Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/renderer/autofill/password_generation_manager.h

Issue 10222017: Make password generation switched by a preference in chrome settings rather than a command line fla… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change DCHECK_EQ to DCHECK to get around some type convertion issue. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/renderer/autofill/password_generation_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/renderer/autofill/password_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698