| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 static NetworkHandler* FromSession(DevToolsSession* session); | 34 static NetworkHandler* FromSession(DevToolsSession* session); |
| 35 | 35 |
| 36 void Wire(UberDispatcher* dispatcher) override; | 36 void Wire(UberDispatcher* dispatcher) override; |
| 37 void SetRenderFrameHost(RenderFrameHostImpl* host) override; | 37 void SetRenderFrameHost(RenderFrameHostImpl* host) override; |
| 38 | 38 |
| 39 Response Enable(Maybe<int> max_total_size, | 39 Response Enable(Maybe<int> max_total_size, |
| 40 Maybe<int> max_resource_size) override; | 40 Maybe<int> max_resource_size) override; |
| 41 Response Disable() override; | 41 Response Disable() override; |
| 42 | 42 |
| 43 Response ClearBrowserCache() override; | 43 Response ClearBrowserCache() override; |
| 44 Response ClearBrowserCookies() override; | 44 void ClearBrowserCookies( |
| 45 std::unique_ptr<ClearBrowserCookiesCallback> callback) override; |
| 45 | 46 |
| 46 void GetCookies(Maybe<protocol::Array<String>> urls, | 47 void GetCookies(Maybe<protocol::Array<String>> urls, |
| 47 std::unique_ptr<GetCookiesCallback> callback) override; | 48 std::unique_ptr<GetCookiesCallback> callback) override; |
| 48 void GetAllCookies(std::unique_ptr<GetAllCookiesCallback> callback) override; | 49 void GetAllCookies(std::unique_ptr<GetAllCookiesCallback> callback) override; |
| 49 void DeleteCookie(const std::string& cookie_name, | 50 void DeleteCookie(const std::string& cookie_name, |
| 50 const std::string& url, | 51 const std::string& url, |
| 51 std::unique_ptr<DeleteCookieCallback> callback) override; | 52 std::unique_ptr<DeleteCookieCallback> callback) override; |
| 52 void SetCookie( | 53 void SetCookie( |
| 53 const std::string& url, | 54 const std::string& url, |
| 54 const std::string& name, | 55 const std::string& name, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool enabled_; | 88 bool enabled_; |
| 88 std::string user_agent_; | 89 std::string user_agent_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 91 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace protocol | 94 } // namespace protocol |
| 94 } // namespace content | 95 } // namespace content |
| 95 | 96 |
| 96 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 97 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |