Lines Matching defs:string

15 #include <string>
22 std::string FormatWsAddress(const std::string& host, int port,
23 const std::string& target_id,
31 void Escape(std::string* string) {
32 for (char& c : *string) {
37 std::string FormatHostPort(const std::string& host, int port) {
39 bool v6 = host.find(':') != std::string::npos;
52 std::string FormatAddress(const std::string& host,
53 const std::string& target_id,
62 std::string MapToString(const std::map<std::string, std::string>& object) {
77 std::string MapsToString(
78 const std::vector<std::map<std::string, std::string>>& array) {
102 const std::string& response,
120 std::map<std::string, std::string> response;
142 std::string data(kDecompressedSize, '\0');
152 std::string FormatWsAddress(const std::string& host, int port,
153 const std::string& target_id,
164 void Send(const std::string& message);
175 void Accept(const std::string& ws_key) {
189 void OnHttpGet(const std::string& host, const std::string& path) override;
190 void OnSocketUpgrade(const std::string& host, const std::string& path,
191 const std::string& ws_key) override;
247 const std::string& host,
249 const std::vector<std::string>& ids,
257 for (const std::string& id : ids) {
270 const std::string& host, int port,
292 const std::string& id,
293 const std::string& ws_key) {
330 const std::string& host,
331 const std::string& path) {
356 const std::string& host,
358 std::vector<std::map<std::string, std::string>> response;
359 for (const std::string& id : delegate_->GetTargetIds()) {
360 response.push_back(std::map<std::string, std::string>());
361 std::map<std::string, std::string>& target_map = response.back();
370 // string. It is not guaranteed to resolve to a valid resource.
374 std::string detected_host = host;
379 std::string formatted_address = FormatAddress(detected_host, id, false);
390 std::string InspectorSocketServer::GetFrontendURL(bool is_compat,
391 const std::string &formatted_address) {
411 const std::string port_string = std::to_string(port_);
466 bool InspectorSocketServer::TargetExists(const std::string& id) {
467 const std::vector<std::string>& target_ids = delegate_->GetTargetIds();
496 void InspectorSocketServer::Send(int session_id, const std::string& message) {
513 void SocketSession::Send(const std::string& message) {
517 void SocketSession::Delegate::OnHttpGet(const std::string& host,
518 const std::string& path) {
523 void SocketSession::Delegate::OnSocketUpgrade(const std::string& host,
524 const std::string& path,
525 const std::string& ws_key) {
526 std::string id = path.empty() ? path : path.substr(1);
532 std::string(data.data(), data.size()));