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

Unified Diff: content/browser/devtools/protocol/security_handler.h

Issue 2572653003: [DevTools] Migrate security handler to new generator. (Closed)
Patch Set: no protocol changes Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/security_handler.h
diff --git a/content/browser/devtools/protocol/security_handler.h b/content/browser/devtools/protocol/security_handler.h
index 46eed3e299ada7129fd3b69f6606509d6ee5a6fe..1b5c53e5879ef21040570e3e24d599bb33e1afc6 100644
--- a/content/browser/devtools/protocol/security_handler.h
+++ b/content/browser/devtools/protocol/security_handler.h
@@ -6,27 +6,27 @@
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
#include "base/macros.h"
-#include "content/browser/devtools/devtools_protocol_handler.h"
-#include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
+#include "content/browser/devtools/protocol/security.h"
#include "content/public/browser/web_contents_observer.h"
namespace content {
-namespace devtools {
-namespace security {
-class SecurityHandler : public WebContentsObserver {
- public:
- typedef DevToolsProtocolClient::Response Response;
+class RenderFrameHostImpl;
+
+namespace protocol {
+class SecurityHandler : public Security::Backend,
+ public WebContentsObserver {
+ public:
SecurityHandler();
~SecurityHandler() override;
- void SetClient(std::unique_ptr<Client> client);
- void SetRenderFrameHost(RenderFrameHost* host);
+ void Wire(UberDispatcher*);
+ void SetRenderFrameHost(RenderFrameHostImpl* host);
- Response Enable();
- Response Disable();
- Response ShowCertificateViewer();
+ Response Enable() override;
+ Response Disable() override;
+ Response ShowCertificateViewer() override;
private:
void AttachToRenderFrameHost();
@@ -34,15 +34,14 @@ class SecurityHandler : public WebContentsObserver {
// WebContentsObserver overrides
void DidChangeVisibleSecurityState() override;
- std::unique_ptr<Client> client_;
+ std::unique_ptr<Security::Frontend> frontend_;
bool enabled_;
- RenderFrameHost* host_;
+ RenderFrameHostImpl* host_;
DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
};
-} // namespace security
-} // namespace devtools
+} // namespace protocol
} // namespace content
#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698