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(); |
+} |