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

Unified Diff: third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.h

Issue 2444783002: Add trace event for complete network request (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.h
diff --git a/third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.h b/third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.h
new file mode 100644
index 0000000000000000000000000000000000000000..affade18ffdd7a500df7e76601678aafb0d10758
--- /dev/null
+++ b/third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.h
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
caseq 2016/10/24 22:47:46 This rather needs to be somewhere under platorm/ne
dproy 2016/11/03 15:13:37 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NetworkInstrumentation_h
+#define NetworkInstrumentation_h
+
+#include "platform/PlatformExport.h"
+
+namespace network_instrumentation {
+
+const char kNetInstrumentationCategory[] = "NetworkInstrumentation";
chiniforooshan 2016/10/24 19:25:37 Lower case category names seem to be more popular.
chiniforooshan 2016/10/24 19:25:37 What do you think about TRACE_DISABLED_BY_DEFAULT(
dproy 2016/11/03 15:13:37 Changed the cat name. Disabled by default sounds g
+
+void PLATFORM_EXPORT beginResourceLoad(unsigned long resourceID,
+ const char* url);
+
+void PLATFORM_EXPORT endResourceLoad(unsigned long resourceID);
+
+} // namespace network_instrumentati
+
+#endif // NetworkInstrumentation_h

Powered by Google App Engine
This is Rietveld 408576698