| 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 "content/browser/devtools/protocol/devtools_domain_handler.h" | 9 #include "content/browser/devtools/protocol/devtools_domain_handler.h" |
| 10 #include "content/browser/devtools/protocol/network.h" | 10 #include "content/browser/devtools/protocol/network.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 void Wire(UberDispatcher* dispatcher) override; | 28 void Wire(UberDispatcher* dispatcher) override; |
| 29 void SetRenderFrameHost(RenderFrameHostImpl* host) override; | 29 void SetRenderFrameHost(RenderFrameHostImpl* host) override; |
| 30 | 30 |
| 31 Response Enable(Maybe<int> max_total_size, | 31 Response Enable(Maybe<int> max_total_size, |
| 32 Maybe<int> max_resource_size) override; | 32 Maybe<int> max_resource_size) override; |
| 33 Response Disable() override; | 33 Response Disable() override; |
| 34 | 34 |
| 35 Response ClearBrowserCache() override; | 35 Response ClearBrowserCache() override; |
| 36 Response ClearBrowserCookies() override; | 36 Response ClearBrowserCookies() override; |
| 37 | 37 |
| 38 void GetCookies(std::unique_ptr<GetCookiesCallback> callback) override; | 38 void GetCookies(Maybe<protocol::Array<String>> urls, |
| 39 std::unique_ptr<GetCookiesCallback> callback) override; |
| 39 void GetAllCookies(std::unique_ptr<GetAllCookiesCallback> callback) override; | 40 void GetAllCookies(std::unique_ptr<GetAllCookiesCallback> callback) override; |
| 40 void DeleteCookie(const std::string& cookie_name, | 41 void DeleteCookie(const std::string& cookie_name, |
| 41 const std::string& url, | 42 const std::string& url, |
| 42 std::unique_ptr<DeleteCookieCallback> callback) override; | 43 std::unique_ptr<DeleteCookieCallback> callback) override; |
| 43 void SetCookie( | 44 void SetCookie( |
| 44 const std::string& url, | 45 const std::string& url, |
| 45 const std::string& name, | 46 const std::string& name, |
| 46 const std::string& value, | 47 const std::string& value, |
| 47 Maybe<std::string> domain, | 48 Maybe<std::string> domain, |
| 48 Maybe<std::string> path, | 49 Maybe<std::string> path, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 63 bool enabled_; | 64 bool enabled_; |
| 64 std::string user_agent_; | 65 std::string user_agent_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 67 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace protocol | 70 } // namespace protocol |
| 70 } // namespace content | 71 } // namespace content |
| 71 | 72 |
| 72 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 73 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |