OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_PROG RESS_LOGGER_H_ | |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_PROG RESS_LOGGER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "components/autofill/core/common/save_password_progress_logger.h" | |
11 | |
12 class PasswordManagerClient; | |
13 | |
14 namespace IPC { | |
15 class Sender; | |
16 } | |
17 | |
18 namespace autofill { | |
19 | |
20 // This is the SavePasswordProgressLogger specialization for the renderer code, | |
21 // where the PasswordManagerClient can needs to be called over IPC. | |
Ilya Sherman
2014/04/09 21:10:08
nit: "where the PasswordManagerClient can needs to
vabr (Chromium)
2014/04/10 08:51:25
Done.
| |
22 class RendererSavePasswordProgressLogger | |
23 : public autofill::SavePasswordProgressLogger { | |
24 public: | |
25 RendererSavePasswordProgressLogger(IPC::Sender* sender, int routing_id); | |
Ilya Sherman
2014/04/09 21:10:08
nit: Docs, please.
vabr (Chromium)
2014/04/10 08:51:25
Done.
| |
26 virtual ~RendererSavePasswordProgressLogger(); | |
27 | |
28 protected: | |
29 // SavePasswordProgressLogger: | |
30 virtual void SendLog(const std::string& log) OVERRIDE; | |
31 | |
32 private: | |
33 // Used by SendLog to send the IPC message with logs. | |
34 IPC::Sender* const sender_; | |
Ilya Sherman
2014/04/09 21:10:08
nit: Please document lifetime expectations.
vabr (Chromium)
2014/04/10 08:51:25
Done.
| |
35 const int routing_id_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(RendererSavePasswordProgressLogger); | |
38 }; | |
39 | |
40 } // namespace autofill | |
41 | |
42 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_RENDERER_BROWSER_SAVE_PASSWORD_P ROGRESS_LOGGER_H_ | |
OLD | NEW |