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

Side by Side Diff: components/autofill/content/renderer/renderer_save_password_progress_logger.h

Issue 1923283002: Password internals page logs names of filled elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_PROG RESS_LOGGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_SAVE_PASSWORD_PROGRESS_LOG GER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_PROG RESS_LOGGER_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_SAVE_PASSWORD_PROGRESS_LOG GER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/autofill/core/common/save_password_progress_logger.h" 11 #include "components/autofill/core/common/save_password_progress_logger.h"
12 12
13 class PasswordManagerClient; 13 class PasswordManagerClient;
14 14
15 namespace blink {
16 class WebFormControlElement;
17 }
18
15 namespace IPC { 19 namespace IPC {
16 class Sender; 20 class Sender;
17 } 21 }
18 22
19 namespace autofill { 23 namespace autofill {
20 24
21 // This is the SavePasswordProgressLogger specialization for the renderer code, 25 // This is the SavePasswordProgressLogger specialization for the renderer code,
22 // which sends logs to the browser process over IPC. 26 // which sends logs to the browser process over IPC.
23 class RendererSavePasswordProgressLogger : public SavePasswordProgressLogger { 27 class RendererSavePasswordProgressLogger : public SavePasswordProgressLogger {
24 public: 28 public:
25 // The logger will use |sender| and |routing_id| to send a 29 // The logger will use |sender| and |routing_id| to send a
26 // AutofillHostMsg_RecordSavePasswordProgress message with the logs to the 30 // AutofillHostMsg_RecordSavePasswordProgress message with the logs to the
27 // browser. The |sender| needs to outlive the constructed logger. 31 // browser. The |sender| needs to outlive the constructed logger.
28 RendererSavePasswordProgressLogger(IPC::Sender* sender, int routing_id); 32 RendererSavePasswordProgressLogger(IPC::Sender* sender, int routing_id);
29 ~RendererSavePasswordProgressLogger() override; 33 ~RendererSavePasswordProgressLogger() override;
30 34
35 void LogElementName(StringID label,
36 const blink::WebFormControlElement& element);
37
31 protected: 38 protected:
32 // SavePasswordProgressLogger: 39 // SavePasswordProgressLogger:
33 void SendLog(const std::string& log) override; 40 void SendLog(const std::string& log) override;
34 41
35 private: 42 private:
36 // Used by SendLog to send the IPC message with logs. |sender_| needs to 43 // Used by SendLog to send the IPC message with logs. |sender_| needs to
37 // outlive the logger. 44 // outlive the logger.
38 IPC::Sender* const sender_; 45 IPC::Sender* const sender_;
39 const int routing_id_; 46 const int routing_id_;
40 47
41 DISALLOW_COPY_AND_ASSIGN(RendererSavePasswordProgressLogger); 48 DISALLOW_COPY_AND_ASSIGN(RendererSavePasswordProgressLogger);
42 }; 49 };
43 50
44 } // namespace autofill 51 } // namespace autofill
45 52
46 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_P ROGRESS_LOGGER_H_ 53 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_SAVE_PASSWORD_PROGRESS_ LOGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698