Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ | |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ | |
| 7 | |
| 8 #include "content/browser/devtools/devtools_protocol_handler.h" | |
| 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | |
| 10 #include "content/public/browser/web_contents.h" | |
| 11 #include "content/public/browser/web_contents_observer.h" | |
| 12 #include "content/public/common/security_style.h" | |
| 13 | |
| 14 namespace content { | |
| 15 namespace devtools { | |
| 16 namespace security { | |
| 17 | |
| 18 class SecurityHandler : private WebContentsObserver { | |
|
pfeldman
2015/06/09 18:36:44
Please rebaseline it on top of the stub.
lgarron
2015/06/09 18:54:45
The latest patch is already rebased onto the #incl
| |
| 19 public: | |
| 20 typedef DevToolsProtocolClient::Response Response; | |
| 21 | |
| 22 SecurityHandler(); | |
| 23 ~SecurityHandler() override; | |
| 24 | |
| 25 void SetClient(scoped_ptr<Client> client); | |
| 26 void SecurityStyleChanged(SecurityStyle security_style) override; | |
| 27 void SetRenderFrameHost(RenderFrameHost* host); | |
| 28 | |
| 29 Response Enable(); | |
| 30 Response Disable(); | |
| 31 | |
| 32 private: | |
| 33 std::string SecurityStyleToProtocolSecurityState( | |
| 34 content::SecurityStyle security_style); | |
| 35 | |
| 36 scoped_ptr<Client> client_; | |
| 37 bool enabled_; | |
| 38 RenderFrameHost* host_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); | |
| 41 }; | |
| 42 | |
| 43 } // namespace security | |
| 44 } // namespace devtools | |
| 45 } // namespace content | |
| 46 | |
| 47 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ | |
| OLD | NEW |