Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 void SetRenderFrameHost(RenderFrameHostImpl* host); | 27 void SetRenderFrameHost(RenderFrameHostImpl* host); |
| 28 void SetClient(std::unique_ptr<Client> client); | 28 void SetClient(std::unique_ptr<Client> client); |
| 29 | 29 |
| 30 Response ClearBrowserCache(); | 30 Response ClearBrowserCache(); |
| 31 Response ClearBrowserCookies(); | 31 Response ClearBrowserCookies(); |
| 32 Response GetCookies(DevToolsCommandId command_id); | 32 Response GetCookies(DevToolsCommandId command_id); |
| 33 Response DeleteCookie(DevToolsCommandId command_id, | 33 Response DeleteCookie(DevToolsCommandId command_id, |
| 34 const std::string& cookie_name, | 34 const std::string& cookie_name, |
| 35 const std::string& url); | 35 const std::string& url); |
| 36 | 36 |
| 37 Response SetCookie(DevToolsCommandId command_id, | |
| 38 const std::string& url, const std::string& name, | |
|
dgozman
2016/08/09 01:07:25
Shouldn't these be one-per-line per style guide?
allada
2016/08/10 02:46:54
Done.
| |
| 39 const std::string& value, const std::string* domain, | |
| 40 const std::string* path, bool* secure, bool* httpOnly, | |
|
dgozman
2016/08/09 01:07:25
style: 4-space continuation indent
allada
2016/08/10 02:46:54
Done.
| |
| 41 const std::string* sameSite, double* expires); | |
| 42 | |
| 37 Response CanEmulateNetworkConditions(bool* result); | 43 Response CanEmulateNetworkConditions(bool* result); |
| 38 Response EmulateNetworkConditions(bool offline, | 44 Response EmulateNetworkConditions(bool offline, |
| 39 double latency, | 45 double latency, |
| 40 double download_throughput, | 46 double download_throughput, |
| 41 double upload_throughput, | 47 double upload_throughput, |
| 42 const std::string* connection_type); | 48 const std::string* connection_type); |
| 43 Response GetCertificateDetails(int certificate_id, | 49 Response GetCertificateDetails(int certificate_id, |
| 44 scoped_refptr<CertificateDetails>* result); | 50 scoped_refptr<CertificateDetails>* result); |
| 45 Response ShowCertificateViewer(int certificate_id); | 51 Response ShowCertificateViewer(int certificate_id); |
| 46 | 52 |
| 47 private: | 53 private: |
| 48 void SendGetCookiesResponse( | 54 void SendGetCookiesResponse( |
| 49 DevToolsCommandId command_id, | 55 DevToolsCommandId command_id, |
| 50 const net::CookieList& cookie_list); | 56 const net::CookieList& cookie_list); |
| 51 void SendDeleteCookieResponse(DevToolsCommandId command_id); | 57 void SendDeleteCookieResponse(DevToolsCommandId command_id); |
| 58 void SendSetCookieResponse(DevToolsCommandId command_id); | |
| 52 | 59 |
| 53 RenderFrameHostImpl* host_; | 60 RenderFrameHostImpl* host_; |
| 54 std::unique_ptr<Client> client_; | 61 std::unique_ptr<Client> client_; |
| 55 base::WeakPtrFactory<NetworkHandler> weak_factory_; | 62 base::WeakPtrFactory<NetworkHandler> weak_factory_; |
| 56 | 63 |
| 57 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 64 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 58 }; | 65 }; |
| 59 | 66 |
| 60 } // namespace network | 67 } // namespace network |
| 61 } // namespace devtools | 68 } // namespace devtools |
| 62 } // namespace content | 69 } // namespace content |
| 63 | 70 |
| 64 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 71 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |