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

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

Issue 2296953004: Send certificates to devtools when it's open instead of using certId (Closed)
Patch Set: self review Created 4 years, 3 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 "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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 bool* http_only, 43 bool* http_only,
44 const std::string* same_site, 44 const std::string* same_site,
45 double* expires); 45 double* expires);
46 46
47 Response CanEmulateNetworkConditions(bool* result); 47 Response CanEmulateNetworkConditions(bool* result);
48 Response EmulateNetworkConditions(bool offline, 48 Response EmulateNetworkConditions(bool offline,
49 double latency, 49 double latency,
50 double download_throughput, 50 double download_throughput,
51 double upload_throughput, 51 double upload_throughput,
52 const std::string* connection_type); 52 const std::string* connection_type);
53 Response GetCertificateDetails(int certificate_id,
54 scoped_refptr<CertificateDetails>* result);
55 Response ShowCertificateViewer(int certificate_id);
56 53
57 private: 54 private:
58 void SendGetCookiesResponse( 55 void SendGetCookiesResponse(
59 DevToolsCommandId command_id, 56 DevToolsCommandId command_id,
60 const net::CookieList& cookie_list); 57 const net::CookieList& cookie_list);
61 void SendDeleteCookieResponse(DevToolsCommandId command_id); 58 void SendDeleteCookieResponse(DevToolsCommandId command_id);
62 void SendSetCookieResponse(DevToolsCommandId command_id, bool success); 59 void SendSetCookieResponse(DevToolsCommandId command_id, bool success);
63 60
64 RenderFrameHostImpl* host_; 61 RenderFrameHostImpl* host_;
65 std::unique_ptr<Client> client_; 62 std::unique_ptr<Client> client_;
66 base::WeakPtrFactory<NetworkHandler> weak_factory_; 63 base::WeakPtrFactory<NetworkHandler> weak_factory_;
67 64
68 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); 65 DISALLOW_COPY_AND_ASSIGN(NetworkHandler);
69 }; 66 };
70 67
71 } // namespace network 68 } // namespace network
72 } // namespace devtools 69 } // namespace devtools
73 } // namespace content 70 } // namespace content
74 71
75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ 72 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.cc ('k') | content/browser/devtools/protocol/network_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698