| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
| 10 #include "net/cookies/canonical_cookie.h" | 10 #include "net/cookies/canonical_cookie.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const std::string& cookie_name, | 33 const std::string& cookie_name, |
| 34 const std::string& url); | 34 const std::string& url); |
| 35 | 35 |
| 36 Response CanEmulateNetworkConditions(bool* result); | 36 Response CanEmulateNetworkConditions(bool* result); |
| 37 Response EmulateNetworkConditions(bool offline, | 37 Response EmulateNetworkConditions(bool offline, |
| 38 double latency, | 38 double latency, |
| 39 double download_throughput, | 39 double download_throughput, |
| 40 double upload_throughput); | 40 double upload_throughput); |
| 41 Response GetCertificateDetails(int certificate_id, | 41 Response GetCertificateDetails(int certificate_id, |
| 42 scoped_refptr<CertificateDetails>* result); | 42 scoped_refptr<CertificateDetails>* result); |
| 43 Response ShowCertificateViewer(int certificate_id); |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 void SendGetCookiesResponse( | 46 void SendGetCookiesResponse( |
| 46 DevToolsCommandId command_id, | 47 DevToolsCommandId command_id, |
| 47 const net::CookieList& cookie_list); | 48 const net::CookieList& cookie_list); |
| 48 void SendDeleteCookieResponse(DevToolsCommandId command_id); | 49 void SendDeleteCookieResponse(DevToolsCommandId command_id); |
| 49 | 50 |
| 50 RenderFrameHostImpl* host_; | 51 RenderFrameHostImpl* host_; |
| 51 scoped_ptr<Client> client_; | 52 scoped_ptr<Client> client_; |
| 52 base::WeakPtrFactory<NetworkHandler> weak_factory_; | 53 base::WeakPtrFactory<NetworkHandler> weak_factory_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 55 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace network | 58 } // namespace network |
| 58 } // namespace devtools | 59 } // namespace devtools |
| 59 } // namespace content | 60 } // namespace content |
| 60 | 61 |
| 61 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 62 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |