Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
estark
2015/06/04 01:09:15
copyright needs to be 2015
lgarron
2015/06/05 01:29:18
Good catch. Done.
| |
| 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/protocol/devtools_protocol_handler.h" | |
| 9 #include "content/public/common/security_style.h" | |
| 10 | |
| 11 namespace content { | |
| 12 namespace devtools { | |
| 13 namespace security { | |
| 14 | |
| 15 class ColorPicker; | |
|
estark
2015/06/04 01:09:15
not needed
lgarron
2015/06/05 01:29:18
Yes. :-)
(Done.)
| |
| 16 | |
| 17 class SecurityHandler { | |
| 18 public: | |
| 19 typedef DevToolsProtocolClient::Response Response; | |
| 20 | |
| 21 SecurityHandler(); | |
| 22 ~SecurityHandler(); | |
| 23 | |
| 24 void SetClient(scoped_ptr<Client> client); | |
| 25 void SecurityStyleChanged(SecurityStyle security_style); | |
| 26 | |
| 27 Response Enable(); | |
| 28 Response Disable(); | |
| 29 | |
| 30 private: | |
| 31 scoped_ptr<Client> client_; | |
| 32 bool enabled_; | |
| 33 | |
| 34 std::string SecurityStyleToProtocolSecurityState( | |
|
estark
2015/06/04 01:09:15
This should go before the data members. (https://e
lgarron
2015/06/05 01:29:18
Done.
| |
| 35 content::SecurityStyle security_style); | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); | |
| 38 }; | |
| 39 | |
| 40 } // namespace security | |
| 41 } // namespace devtools | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ | |
| OLD | NEW |