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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, style tweaks 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
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 <string>
9 #include <vector>
Peter Kasting 2015/06/16 06:29:11 These #includes aren't necessary
estark 2015/06/16 15:32:35 Done.
10
8 #include "content/browser/devtools/devtools_protocol_handler.h" 11 #include "content/browser/devtools/devtools_protocol_handler.h"
9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 12 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
10 #include "content/public/browser/web_contents_observer.h" 13 #include "content/public/browser/web_contents_observer.h"
11 #include "content/public/common/security_style.h" 14 #include "content/public/common/security_style.h"
12 15
13 namespace content { 16 namespace content {
14 namespace devtools { 17 namespace devtools {
15 namespace security { 18 namespace security {
16 19
17 class SecurityHandler : public WebContentsObserver { 20 class SecurityHandler : public WebContentsObserver {
18 public: 21 public:
19 typedef DevToolsProtocolClient::Response Response; 22 typedef DevToolsProtocolClient::Response Response;
20 23
21 SecurityHandler(); 24 SecurityHandler();
22 ~SecurityHandler() override; 25 ~SecurityHandler() override;
23 26
24 void SetClient(scoped_ptr<Client> client); 27 void SetClient(scoped_ptr<Client> client);
25 void SetRenderFrameHost(RenderFrameHost* host); 28 void SetRenderFrameHost(RenderFrameHost* host);
26 29
27 Response Enable(); 30 Response Enable();
28 Response Disable(); 31 Response Disable();
29 32
30 private: 33 private:
31 34
32 // WebContentsObserver overrides 35 // WebContentsObserver overrides
33 void SecurityStyleChanged(SecurityStyle security_style) override; 36 void SecurityStyleChanged(
37 SecurityStyle security_style,
38 const SecurityStyleExplanation& security_style_explanation) override;
34 39
35 scoped_ptr<Client> client_; 40 scoped_ptr<Client> client_;
36 bool enabled_; 41 bool enabled_;
37 RenderFrameHost* host_; 42 RenderFrameHost* host_;
38 43
39 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); 44 DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
40 }; 45 };
41 46
42 } // namespace security 47 } // namespace security
43 } // namespace devtools 48 } // namespace devtools
44 } // namespace content 49 } // namespace content
45 50
46 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ 51 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698