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

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

Issue 2863623003: [DevTools] Support multiple sessions in content/ domain handlers (Closed)
Patch Set: addressed review comments Created 3 years, 7 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 <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 class SecurityHandler : public DevToolsDomainHandler, 23 class SecurityHandler : public DevToolsDomainHandler,
24 public Security::Backend, 24 public Security::Backend,
25 public WebContentsObserver { 25 public WebContentsObserver {
26 public: 26 public:
27 using CertErrorCallback = 27 using CertErrorCallback =
28 base::Callback<void(content::CertificateRequestResultType)>; 28 base::Callback<void(content::CertificateRequestResultType)>;
29 29
30 SecurityHandler(); 30 SecurityHandler();
31 ~SecurityHandler() override; 31 ~SecurityHandler() override;
32 32
33 static SecurityHandler* FromAgentHost(DevToolsAgentHostImpl* host); 33 static std::vector<SecurityHandler*> ForAgentHost(
34 DevToolsAgentHostImpl* host);
34 35
35 // DevToolsDomainHandler overrides 36 // DevToolsDomainHandler overrides
36 void Wire(UberDispatcher* dispatcher) override; 37 void Wire(UberDispatcher* dispatcher) override;
37 void SetRenderFrameHost(RenderFrameHostImpl* host) override; 38 void SetRenderFrameHost(RenderFrameHostImpl* host) override;
38 39
39 // Security::Backend overrides. 40 // Security::Backend overrides.
40 Response Enable() override; 41 Response Enable() override;
41 Response Disable() override; 42 Response Disable() override;
42 Response ShowCertificateViewer() override; 43 Response ShowCertificateViewer() override;
43 Response HandleCertificateError(int event_id, const String& action) override; 44 Response HandleCertificateError(int event_id, const String& action) override;
(...skipping 23 matching lines...) Expand all
67 CertErrorCallbackMap cert_error_callbacks_; 68 CertErrorCallbackMap cert_error_callbacks_;
68 bool certificate_errors_overriden_ = false; 69 bool certificate_errors_overriden_ = false;
69 70
70 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); 71 DISALLOW_COPY_AND_ASSIGN(SecurityHandler);
71 }; 72 };
72 73
73 } // namespace protocol 74 } // namespace protocol
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ 77 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/browser/devtools/protocol/security_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698