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

Unified Diff: third_party/grpc/src/core/census/placeholders.c

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/operation.c ('k') | third_party/grpc/src/core/census/rpc_metric_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/src/core/census/placeholders.c
diff --git a/third_party/WebKit/public/web/WebSelector.h b/third_party/grpc/src/core/census/placeholders.c
similarity index 50%
copy from third_party/WebKit/public/web/WebSelector.h
copy to third_party/grpc/src/core/census/placeholders.c
index 00c5e6c18018ce879cff0e4ee1ff0e67aac3df75..fe23d13971a0be1d696e3a3ce035bbf08bc2980b 100644
--- a/third_party/WebKit/public/web/WebSelector.h
+++ b/third_party/grpc/src/core/census/placeholders.c
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ *
+ * Copyright 2016, 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,30 +28,82 @@
* 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.
+ *
*/
-#ifndef WebSelector_h
-#define WebSelector_h
+#include <grpc/census.h>
+
+#include <grpc/support/log.h>
+
+/* Placeholders for the pending APIs */
+
+int census_get_trace_record(census_trace_record *trace_record) {
+ (void)trace_record;
+ abort();
+}
+
+void census_record_values(census_context *context, census_value *values,
+ size_t nvalues) {
+ (void)context;
+ (void)values;
+ (void)nvalues;
+ abort();
+}
+
+void census_set_rpc_client_peer(census_context *context, const char *peer) {
+ (void)context;
+ (void)peer;
+ abort();
+}
+
+void census_trace_scan_end() { abort(); }
+
+int census_trace_scan_start(int consume) {
+ (void)consume;
+ abort();
+}
+
+const census_aggregation *census_view_aggregrations(const census_view *view) {
+ (void)view;
+ abort();
+}
-#include "../platform/WebCommon.h"
+census_view *census_view_create(uint32_t metric_id, const census_context *tags,
+ const census_aggregation *aggregations,
+ size_t naggregations) {
+ (void)metric_id;
+ (void)tags;
+ (void)aggregations;
+ (void)naggregations;
+ abort();
+}
-namespace blink {
+const census_context *census_view_tags(const census_view *view) {
+ (void)view;
+ abort();
+}
-class WebString;
+void census_view_delete(census_view *view) {
+ (void)view;
+ abort();
+}
-// Terminology from http://dev.w3.org/csswg/selectors4/#structure.
-enum WebSelectorType {
- WebSelectorTypeComplex,
- WebSelectorTypeCompound,
- // Not yet implemented:
- // SelectorTypeSimple,
-};
+const census_view_data *census_view_get_data(const census_view *view) {
+ (void)view;
+ abort();
+}
-// Returns the value that would be returned from CSSStyleRule.selectorText in the CSSOM for a rule with this selector (which can be a list), if the selector is valid and each component in the list has the type specified in |restriction|.
-// Returns "" for an invalid selector or a selector that doesn't match the restrictions.
-// The canonical form is not guaranteed to stay the same over time.
-BLINK_EXPORT WebString canonicalizeSelector(WebString selector, WebSelectorType restriction = WebSelectorTypeComplex);
+size_t census_view_metric(const census_view *view) {
+ (void)view;
+ abort();
+}
-} // namespace blink
+size_t census_view_naggregations(const census_view *view) {
+ (void)view;
+ abort();
+}
-#endif
+void census_view_reset(census_view *view) {
+ (void)view;
+ abort();
+}
« no previous file with comments | « third_party/grpc/src/core/census/operation.c ('k') | third_party/grpc/src/core/census/rpc_metric_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698