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

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

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: more curly braces Created 4 years, 2 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/devtools/protocol/security_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/devtools/devtools_protocol_handler.h" 9 #include "content/browser/devtools/devtools_protocol_handler.h"
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
11 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
12 #include "content/public/common/security_style.h"
13 12
14 namespace content { 13 namespace content {
15 namespace devtools { 14 namespace devtools {
16 namespace security { 15 namespace security {
17 16
18 class SecurityHandler : public WebContentsObserver { 17 class SecurityHandler : public WebContentsObserver {
19 public: 18 public:
20 typedef DevToolsProtocolClient::Response Response; 19 typedef DevToolsProtocolClient::Response Response;
21 20
22 SecurityHandler(); 21 SecurityHandler();
23 ~SecurityHandler() override; 22 ~SecurityHandler() override;
24 23
25 void SetClient(std::unique_ptr<Client> client); 24 void SetClient(std::unique_ptr<Client> client);
26 void SetRenderFrameHost(RenderFrameHost* host); 25 void SetRenderFrameHost(RenderFrameHost* host);
27 26
28 Response Enable(); 27 Response Enable();
29 Response Disable(); 28 Response Disable();
30 Response ShowCertificateViewer(); 29 Response ShowCertificateViewer();
31 30
32 private: 31 private:
33 void AttachToRenderFrameHost(); 32 void AttachToRenderFrameHost();
34 33
35 // WebContentsObserver overrides 34 // WebContentsObserver overrides
36 void SecurityStyleChanged( 35 void SecurityStyleChanged(
37 SecurityStyle security_style, 36 blink::WebSecurityStyle security_style,
38 const SecurityStyleExplanations& security_style_explanations) override; 37 const SecurityStyleExplanations& security_style_explanations) override;
39 38
40 std::unique_ptr<Client> client_; 39 std::unique_ptr<Client> client_;
41 bool enabled_; 40 bool enabled_;
42 RenderFrameHost* host_; 41 RenderFrameHost* host_;
43 42
44 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); 43 DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
45 }; 44 };
46 45
47 } // namespace security 46 } // namespace security
48 } // namespace devtools 47 } // namespace devtools
49 } // namespace content 48 } // namespace content
50 49
51 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ 50 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/devtools/protocol/security_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698