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

Unified Diff: third_party/grpc/src/core/census/rpc_metric_id.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/grpc/src/core/census/placeholders.c ('k') | third_party/grpc/src/core/census/tracing.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/src/core/census/rpc_metric_id.h
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementDefinition.cpp b/third_party/grpc/src/core/census/rpc_metric_id.h
similarity index 68%
copy from third_party/WebKit/Source/core/dom/custom/V0CustomElementDefinition.cpp
copy to third_party/grpc/src/core/census/rpc_metric_id.h
index c1014d39e49383d5b1a9c5ee2b3922fed9bbdba6..f199839511ce128ffd0311fa42c7ffd1ea944dff 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementDefinition.cpp
+++ b/third_party/grpc/src/core/census/rpc_metric_id.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Copyright 2015, Google Inc.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -26,26 +28,24 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
*/
-#include "core/dom/custom/V0CustomElementDefinition.h"
-
-namespace blink {
-
-V0CustomElementDefinition* V0CustomElementDefinition::create(const V0CustomElementDescriptor& descriptor, V0CustomElementLifecycleCallbacks* callbacks)
-{
- return new V0CustomElementDefinition(descriptor, callbacks);
-}
-
-V0CustomElementDefinition::V0CustomElementDefinition(const V0CustomElementDescriptor& descriptor, V0CustomElementLifecycleCallbacks* callbacks)
- : m_descriptor(descriptor)
- , m_callbacks(callbacks)
-{
-}
+#ifndef CENSUS_RPC_METRIC_ID_H
+#define CENSUS_RPC_METRIC_ID_H
-DEFINE_TRACE(V0CustomElementDefinition)
-{
- visitor->trace(m_callbacks);
-}
+/* Metric ID's used for RPC measurements. */
+/* Count of client requests sent. */
+#define CENSUS_METRIC_RPC_CLIENT_REQUESTS ((uint32_t)0)
+/* Count of server requests sent. */
+#define CENSUS_METRIC_RPC_SERVER_REQUESTS ((uint32_t)1)
+/* Client error counts. */
+#define CENSUS_METRIC_RPC_CLIENT_ERRORS ((uint32_t)2)
+/* Server error counts. */
+#define CENSUS_METRIC_RPC_SERVER_ERRORS ((uint32_t)3)
+/* Client side request latency. */
+#define CENSUS_METRIC_RPC_CLIENT_LATENCY ((uint32_t)4)
+/* Server side request latency. */
+#define CENSUS_METRIC_RPC_SERVER_LATENCY ((uint32_t)5)
-} // namespace blink
+#endif /* CENSUS_RPC_METRIC_ID_H */
« no previous file with comments | « third_party/grpc/src/core/census/placeholders.c ('k') | third_party/grpc/src/core/census/tracing.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698