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

Unified Diff: net/log/net_log.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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/http/http_network_transaction_unittest.cc ('k') | net/log/net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log.h
diff --git a/net/log/net_log.h b/net/log/net_log.h
index 7d32e1c921afc98447d94b16071e6433a015b818..42d40a2e0f106b79b71b58be1f022ae1d411f2b5 100644
--- a/net/log/net_log.h
+++ b/net/log/net_log.h
@@ -261,7 +261,10 @@ class NET_EXPORT NetLog {
// Returns a C-String symbolic name for |event_phase|.
static const char* EventPhaseToString(EventPhase event_phase);
- // Creates a ParametersCallback that encapsulates a single integer.
+ // Creates a ParametersCallback that encapsulates a single bool.
+ // Warning: |name| must remain valid for the life of the callback.
+ static ParametersCallback BoolCallback(const char* name, bool value);
+
// Warning: |name| must remain valid for the life of the callback.
// TODO(mmenke): Rename this to be consistent with Int64Callback.
static ParametersCallback IntegerCallback(const char* name, int value);
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/log/net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698