| 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/network.h" | 9 #include "content/browser/devtools/protocol/network.h" |
| 10 #include "net/cookies/canonical_cookie.h" | 10 #include "net/cookies/canonical_cookie.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 void SetRenderFrameHost(RenderFrameHostImpl* host); | 23 void SetRenderFrameHost(RenderFrameHostImpl* host); |
| 24 void Wire(UberDispatcher*); | 24 void Wire(UberDispatcher*); |
| 25 | 25 |
| 26 Response Enable(Maybe<int> max_total_size, | 26 Response Enable(Maybe<int> max_total_size, |
| 27 Maybe<int> max_resource_size) override; | 27 Maybe<int> max_resource_size) override; |
| 28 Response Disable() override; | 28 Response Disable() override; |
| 29 | 29 |
| 30 Response ClearBrowserCache() override; | 30 Response ClearBrowserCache() override; |
| 31 Response ClearBrowserCookies() override; | 31 Response ClearBrowserCookies() override; |
| 32 | 32 |
| 33 void GetCookies(Maybe<bool> global, | 33 void GetCookies(std::unique_ptr<GetCookiesCallback> callback) override; |
| 34 std::unique_ptr<GetCookiesCallback> callback) override; | 34 void GetAllCookies(std::unique_ptr<GetAllCookiesCallback> callback) override; |
| 35 void DeleteCookie(const std::string& cookie_name, | 35 void DeleteCookie(const std::string& cookie_name, |
| 36 const std::string& url, | 36 const std::string& url, |
| 37 std::unique_ptr<DeleteCookieCallback> callback) override; | 37 std::unique_ptr<DeleteCookieCallback> callback) override; |
| 38 void SetCookie( | 38 void SetCookie( |
| 39 const std::string& url, | 39 const std::string& url, |
| 40 const std::string& name, | 40 const std::string& name, |
| 41 const std::string& value, | 41 const std::string& value, |
| 42 Maybe<std::string> domain, | 42 Maybe<std::string> domain, |
| 43 Maybe<std::string> path, | 43 Maybe<std::string> path, |
| 44 Maybe<bool> secure, | 44 Maybe<bool> secure, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 RenderFrameHostImpl* host_; | 55 RenderFrameHostImpl* host_; |
| 56 bool enabled_; | 56 bool enabled_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 58 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace protocol | 61 } // namespace protocol |
| 62 } // namespace content | 62 } // namespace content |
| 63 | 63 |
| 64 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 64 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |