| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NETWORK_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 bool* http_only, | 46 bool* http_only, |
| 47 const std::string* same_site, | 47 const std::string* same_site, |
| 48 double* expires); | 48 double* expires); |
| 49 | 49 |
| 50 Response CanEmulateNetworkConditions(bool* result); | 50 Response CanEmulateNetworkConditions(bool* result); |
| 51 Response EmulateNetworkConditions(bool offline, | 51 Response EmulateNetworkConditions(bool offline, |
| 52 double latency, | 52 double latency, |
| 53 double download_throughput, | 53 double download_throughput, |
| 54 double upload_throughput, | 54 double upload_throughput, |
| 55 const std::string* connection_type); | 55 const std::string* connection_type); |
| 56 Response GetCertificateDetails(int certificate_id, | |
| 57 scoped_refptr<CertificateDetails>* result); | |
| 58 Response ShowCertificateViewer(int certificate_id); | 56 Response ShowCertificateViewer(int certificate_id); |
| 59 | 57 |
| 60 private: | 58 private: |
| 61 void SendGetCookiesResponse( | 59 void SendGetCookiesResponse( |
| 62 DevToolsCommandId command_id, | 60 DevToolsCommandId command_id, |
| 63 const net::CookieList& cookie_list); | 61 const net::CookieList& cookie_list); |
| 64 void SendDeleteCookieResponse(DevToolsCommandId command_id); | 62 void SendDeleteCookieResponse(DevToolsCommandId command_id); |
| 65 void SendSetCookieResponse(DevToolsCommandId command_id, bool success); | 63 void SendSetCookieResponse(DevToolsCommandId command_id, bool success); |
| 66 | 64 |
| 67 RenderFrameHostImpl* host_; | 65 RenderFrameHostImpl* host_; |
| 68 std::unique_ptr<Client> client_; | 66 std::unique_ptr<Client> client_; |
| 69 bool enabled_; | 67 bool enabled_; |
| 70 base::WeakPtrFactory<NetworkHandler> weak_factory_; | 68 base::WeakPtrFactory<NetworkHandler> weak_factory_; |
| 71 | 69 |
| 72 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 70 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 73 }; | 71 }; |
| 74 | 72 |
| 75 } // namespace network | 73 } // namespace network |
| 76 } // namespace devtools | 74 } // namespace devtools |
| 77 } // namespace content | 75 } // namespace content |
| 78 | 76 |
| 79 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 77 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |