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

Unified Diff: net/cookies/cookie_monster.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/x509_certificate_openssl.cc ('k') | net/extras/sqlite/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster.cc
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index c5be7c4cd450a93875e6d8a2963f412a69d17be2..1556a3e93462e469dcf93eafa1b95d229e4ceedf 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -47,7 +47,7 @@
#include <algorithm>
#include <functional>
#include <set>
-
+#include "base/trace_event/trace_event.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/location.h"
@@ -533,6 +533,7 @@ class CookieMonster::GetCookieListWithOptionsTask : public CookieMonsterTask {
};
void CookieMonster::GetCookieListWithOptionsTask::Run() {
+ TRACE_EVENT0("toplevel", "CookieMonster::GetCookieListWithOptionsTask::Run");
if (!callback_.is_null()) {
CookieList cookies =
this->cookie_monster()->GetCookieListWithOptions(url_, options_);
@@ -1129,6 +1130,7 @@ CookieList CookieMonster::GetAllCookies() {
CookieList CookieMonster::GetCookieListWithOptions(
const GURL& url,
const CookieOptions& options) {
+ TRACE_EVENT0("toplevel", "CookieMonster::GetAllCookiesForURLWithOptions");
base::AutoLock autolock(lock_);
CookieList cookies;
@@ -1323,6 +1325,8 @@ void CookieMonster::MarkCookieStoreAsInitialized() {
}
void CookieMonster::FetchAllCookiesIfNecessary() {
+ TRACE_EVENT0("toplevel", "CookieMonster::FetchAllCookiesIfNecessary");
+
if (store_.get() && !started_fetching_all_cookies_) {
started_fetching_all_cookies_ = true;
FetchAllCookies();
« no previous file with comments | « net/cert/x509_certificate_openssl.cc ('k') | net/extras/sqlite/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698