Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: content/browser/devtools/protocol/security_handler.h

Issue 1163963002: Implement SecurityHandler to send the lock icon status to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698