| 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 0c07a7b2010af2181453f3f24125a7248bdf2849..e4c0be74268ef15dd813c7cb86a46b6cecde20b5 100644
|
| --- a/content/browser/devtools/protocol/security_handler.h
|
| +++ b/content/browser/devtools/protocol/security_handler.h
|
| @@ -6,25 +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_dispatcher.h"
|
| +#include "content/public/browser/web_contents.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 : private WebContentsObserver {
|
| public:
|
| typedef DevToolsProtocolClient::Response Response;
|
|
|
| SecurityHandler();
|
| - ~SecurityHandler();
|
| + ~SecurityHandler() override;
|
|
|
| void SetClient(scoped_ptr<Client> client);
|
| + void SecurityStyleChanged(SecurityStyle security_style) override;
|
| + void SetRenderFrameHost(RenderFrameHost* host);
|
|
|
| Response Enable();
|
| Response Disable();
|
|
|
| private:
|
| + std::string SecurityStyleToProtocolSecurityState(
|
| + content::SecurityStyle security_style);
|
| +
|
| + scoped_ptr<Client> client_;
|
| + bool enabled_;
|
| + RenderFrameHost* host_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
|
| };
|
|
|