| OLD | NEW |
| 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 "content/browser/devtools/devtools_protocol_handler.h" | 8 #include "content/browser/devtools/devtools_protocol_handler.h" |
| 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 void SetClient(scoped_ptr<Client> client); | 24 void SetClient(scoped_ptr<Client> client); |
| 25 void SetRenderFrameHost(RenderFrameHost* host); | 25 void SetRenderFrameHost(RenderFrameHost* host); |
| 26 | 26 |
| 27 Response Enable(); | 27 Response Enable(); |
| 28 Response Disable(); | 28 Response Disable(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 | 31 |
| 32 // WebContentsObserver overrides | 32 // WebContentsObserver overrides |
| 33 void SecurityStyleChanged(SecurityStyle security_style) override; | 33 void SecurityStyleChanged( |
| 34 SecurityStyle security_style, |
| 35 const SecurityStyleExplanations& security_style_explanations) override; |
| 34 | 36 |
| 35 scoped_ptr<Client> client_; | 37 scoped_ptr<Client> client_; |
| 36 bool enabled_; | 38 bool enabled_; |
| 37 RenderFrameHost* host_; | 39 RenderFrameHost* host_; |
| 38 | 40 |
| 39 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); | 41 DISALLOW_COPY_AND_ASSIGN(SecurityHandler); |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 } // namespace security | 44 } // namespace security |
| 43 } // namespace devtools | 45 } // namespace devtools |
| 44 } // namespace content | 46 } // namespace content |
| 45 | 47 |
| 46 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ | 48 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SECURITY_HANDLER_H_ |
| OLD | NEW |