Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f887c9144ea96fc7c087cd4200a9a734a71647c5 |
| --- /dev/null |
| +++ b/content/browser/devtools/protocol/security_handler.h |
| @@ -0,0 +1,44 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ |
| +#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ |
| + |
| +#include "content/browser/devtools/protocol/devtools_protocol_handler.h" |
| +#include "content/public/common/security_style.h" |
| + |
| +namespace content { |
| +namespace devtools { |
| +namespace security { |
| + |
| +class ColorPicker; |
|
estark
2015/06/04 01:09:15
not needed
lgarron
2015/06/05 01:29:18
Yes. :-)
(Done.)
|
| + |
| +class SecurityHandler { |
| + public: |
| + typedef DevToolsProtocolClient::Response Response; |
| + |
| + SecurityHandler(); |
| + ~SecurityHandler(); |
| + |
| + void SetClient(scoped_ptr<Client> client); |
| + void SecurityStyleChanged(SecurityStyle security_style); |
| + |
| + Response Enable(); |
| + Response Disable(); |
| + |
| + private: |
| + scoped_ptr<Client> client_; |
| + bool enabled_; |
| + |
| + 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.
|
| + content::SecurityStyle security_style); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SecurityHandler); |
| +}; |
| + |
| +} // namespace security |
| +} // namespace devtools |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ |