Home | History | Annotate | Download | only in socket

Lines Matching defs:Group

9 // connecting) sockets per "group" (generally speaking, the hostname), (2)
10 // maintaining a per-group list of idle, persistent sockets for reuse, and (3)
340 // A Group is allocated per group_name when there are idle sockets or pending
341 // requests. Otherwise, the Group object is removed from the map.
343 class Group {
345 Group();
346 ~Group();
410 ScopedRunnableMethodFactory<Group> method_factory_;
413 typedef std::map<std::string, Group*> GroupMap;
432 Group* group);
434 Group* GetOrCreateGroup(const std::string& group_name);
445 // Scans the group map for groups which have an available socket slot and
447 // if so, fills |group| and |group_name| with data of the stalled group
449 bool FindTopStalledGroup(Group** group, std::string* group_name);
457 group| if non-NULL.
458 void RemoveConnectJob(ConnectJob* job, Group* group);
460 // Tries to see if we can handle any more requests for |group|.
461 void OnAvailableSocketSlot(const std::string& group_name, Group* group);
463 // Process a pending socket request for a group.
464 void ProcessPendingRequest(const std::string& group_name, Group* group);
466 // Assigns |socket| to |handle| and updates |group|'s counters appropriately.
471 Group* group,
474 // Adds |socket| to the list of idle sockets for |group|.
475 void AddIdleSocket(ClientSocket* socket, Group* group);
494 // Assigns an idle socket for the group to the request.
496 bool AssignIdleSocketToGroup(const Request* request, Group* group);
509 // |group|. If |group| is NULL, it is ignored. Returns true if it closed a
511 bool CloseOneIdleSocketExceptInGroup(const Group* group);
552 // The maximum number of sockets kept per group.
631 // sockets a "group" can have. |unused_idle_socket_timeout| specifies how