Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: content/browser/devtools/protocol/network_handler.h

Issue 2785943005: DevTools: Fix Network.clearBrowserCookies (Closed)
Patch Set: undo protocol changes Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/devtools/protocol/network_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698