| 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 59b1400cec55df845d38bf2c019e4254c8dd5858..c9c90842efbc475cea2ff52d157179d9bc421d71 100644
|
| --- a/content/browser/devtools/protocol/security_handler.h
|
| +++ b/content/browser/devtools/protocol/security_handler.h
|
| @@ -6,26 +6,36 @@
|
| #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
|
|
|
| #include "content/browser/devtools/devtools_protocol_handler.h"
|
| -#include "content/browser/devtools/protocol/devtools_protocol_client.h"
|
| +#include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
|
| +#include "content/public/browser/web_contents_observer.h"
|
| +#include "content/public/common/security_style.h"
|
|
|
| namespace content {
|
| namespace devtools {
|
| namespace security {
|
|
|
| -class SecurityHandler {
|
| +class SecurityHandler : public WebContentsObserver {
|
| public:
|
| typedef DevToolsProtocolClient::Response Response;
|
|
|
| SecurityHandler();
|
| - virtual ~SecurityHandler();
|
| + ~SecurityHandler() override;
|
|
|
| - void SetClient(scoped_ptr<DevToolsProtocolClient> client);
|
| + void SetClient(scoped_ptr<Client> client);
|
| + void SetRenderFrameHost(RenderFrameHost* host);
|
|
|
| Response Enable();
|
| Response Disable();
|
|
|
| private:
|
|
|
| + // WebContentsObserver overrides
|
| + void SecurityStyleChanged(SecurityStyle security_style) override;
|
| +
|
| + scoped_ptr<Client> client_;
|
| + bool enabled_;
|
| + RenderFrameHost* host_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
|
| };
|
|
|
|
|