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

Side by Side Diff: net/base/cookie_monster.cc

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « net/base/cookie_monster.h ('k') | net/base/host_resolver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Portions of this code based on Mozilla: 5 // Portions of this code based on Mozilla:
6 // (netwerk/cookie/src/nsCookieService.cpp) 6 // (netwerk/cookie/src/nsCookieService.cpp)
7 /* ***** BEGIN LICENSE BLOCK ***** 7 /* ***** BEGIN LICENSE BLOCK *****
8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
9 * 9 *
10 * The contents of this file are subject to the Mozilla Public License Version 10 * The contents of this file are subject to the Mozilla Public License Version
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1316
1317 for (CookieMap::iterator it = cookies_.begin(); it != cookies_.end();) { 1317 for (CookieMap::iterator it = cookies_.begin(); it != cookies_.end();) {
1318 CookieMap::iterator curit = it; 1318 CookieMap::iterator curit = it;
1319 ++it; 1319 ++it;
1320 if (matching_cookies.find(curit->second) != matching_cookies.end()) { 1320 if (matching_cookies.find(curit->second) != matching_cookies.end()) {
1321 InternalDeleteCookie(curit, true, DELETE_COOKIE_EXPLICIT); 1321 InternalDeleteCookie(curit, true, DELETE_COOKIE_EXPLICIT);
1322 } 1322 }
1323 } 1323 }
1324 } 1324 }
1325 1325
1326 CookieMonster* CookieMonster::GetCookieMonster() {
1327 return this;
1328 }
1329
1326 CookieList CookieMonster::GetAllCookies() { 1330 CookieList CookieMonster::GetAllCookies() {
1327 AutoLock autolock(lock_); 1331 AutoLock autolock(lock_);
1328 InitIfNecessary(); 1332 InitIfNecessary();
1329 1333
1330 // This function is being called to scrape the cookie list for management UI 1334 // This function is being called to scrape the cookie list for management UI
1331 // or similar. We shouldn't show expired cookies in this list since it will 1335 // or similar. We shouldn't show expired cookies in this list since it will
1332 // just be confusing to users, and this function is called rarely enough (and 1336 // just be confusing to users, and this function is called rarely enough (and
1333 // is already slow enough) that it's OK to take the time to garbage collect 1337 // is already slow enough) that it's OK to take the time to garbage collect
1334 // the expired cookies now. 1338 // the expired cookies now.
1335 // 1339 //
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 return base::StringPrintf( 2006 return base::StringPrintf(
2003 "name: %s value: %s domain: %s path: %s creation: %" 2007 "name: %s value: %s domain: %s path: %s creation: %"
2004 PRId64, 2008 PRId64,
2005 name_.c_str(), value_.c_str(), 2009 name_.c_str(), value_.c_str(),
2006 domain_.c_str(), path_.c_str(), 2010 domain_.c_str(), path_.c_str(),
2007 static_cast<int64>(creation_date_.ToTimeT())); 2011 static_cast<int64>(creation_date_.ToTimeT()));
2008 } 2012 }
2009 2013
2010 } // namespace 2014 } // namespace
2011 2015
OLDNEW
« no previous file with comments | « net/base/cookie_monster.h ('k') | net/base/host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698