Home | History | Annotate | Download | only in cookies

Lines Matching full:pairs_

172   if (!pairs_.empty())
180 return !pairs_.empty();
185 StringToCookiePriority(pairs_[priority_index_].second);
191 if (pairs_.empty())
192 pairs_.push_back(std::make_pair("", ""));
193 pairs_[0].first = name;
200 if (pairs_.empty())
201 pairs_.push_back(std::make_pair("", ""));
202 pairs_[0].second = value;
236 for (PairList::const_iterator it = pairs_.begin();
237 it != pairs_.end(); ++it) {
342 // Parse all token/value pairs and populate pairs_.
344 pairs_.clear();
399 pairs_.clear();
403 pairs_.push_back(pair);
414 if (pairs_[0].first.empty() && pairs_[0].second.empty()) {
415 pairs_.clear();
420 for (size_t i = 1; i < pairs_.size(); ++i) {
421 if (pairs_[i].first == kPathTokenName) {
423 } else if (pairs_[i].first == kDomainTokenName) {
425 } else if (pairs_[i].first == kExpiresTokenName) {
427 } else if (pairs_[i].first == kMaxAgeTokenName) {
429 } else if (pairs_[i].first == kSecureTokenName) {
431 } else if (pairs_[i].first == kHttpOnlyTokenName) {
433 } else if (pairs_[i].first == kPriorityTokenName) {
471 pairs_[*index].second = value;
473 pairs_.push_back(std::make_pair(key, value));
474 *index = pairs_.size() - 1;
480 // The first pair (name/value of cookie at pairs_[0]) cannot be cleared.
495 pairs_.erase(pairs_.begin() + index);