Index: third_party/grpc/src/compiler/python_generator.h |
diff --git a/third_party/WebKit/Source/core/timing/PerformanceCompositeTiming.h b/third_party/grpc/src/compiler/python_generator.h |
similarity index 60% |
copy from third_party/WebKit/Source/core/timing/PerformanceCompositeTiming.h |
copy to third_party/grpc/src/compiler/python_generator.h |
index 6128e20846962da0d0206fb4b38c38c835d997c9..68da18f9baa659e54fe5ab8fbdb6b5611aba7704 100644 |
--- a/third_party/WebKit/Source/core/timing/PerformanceCompositeTiming.h |
+++ b/third_party/grpc/src/compiler/python_generator.h |
@@ -1,6 +1,7 @@ |
/* |
- * Copyright (C) 2015 Google Inc. All rights reserved. |
- * Copyright (C) 2015 Intel Inc. All rights reserved. |
+ * |
+ * Copyright 2015-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 |
@@ -27,43 +28,41 @@ |
* 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 PerformanceCompositeTiming_h |
-#define PerformanceCompositeTiming_h |
- |
-#include "core/timing/PerformanceEntry.h" |
-#include "platform/heap/Handle.h" |
-#include "wtf/Forward.h" |
-#include "wtf/text/WTFString.h" |
- |
-namespace blink { |
+#ifndef GRPC_INTERNAL_COMPILER_PYTHON_GENERATOR_H |
+#define GRPC_INTERNAL_COMPILER_PYTHON_GENERATOR_H |
-class Document; |
+#include <utility> |
-class PerformanceCompositeTiming final : public PerformanceEntry { |
- DEFINE_WRAPPERTYPEINFO(); |
-public: |
- static PerformanceCompositeTiming* create(Document* requestingDocument, unsigned sourceFrame, double startTime) |
- { |
- return new PerformanceCompositeTiming(requestingDocument, sourceFrame, startTime); |
- } |
+#include "src/compiler/config.h" |
- unsigned sourceFrame() const; |
+namespace grpc_python_generator { |
- DECLARE_VIRTUAL_TRACE(); |
- |
-protected: |
- void buildJSONValue(V8ObjectBuilder&) const override; |
+// Data pertaining to configuration of the generator with respect to anything |
+// that may be used internally at Google. |
+struct GeneratorConfiguration { |
+ grpc::string beta_package_root; |
+}; |
-private: |
- PerformanceCompositeTiming(Document* requestingDocument, unsigned sourceFrame, double startTime); |
- ~PerformanceCompositeTiming() override; |
+class PythonGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { |
+ public: |
+ PythonGrpcGenerator(const GeneratorConfiguration& config); |
+ ~PythonGrpcGenerator(); |
- unsigned m_sourceFrame; |
- Member<Document> m_requestingDocument; |
+ bool Generate(const grpc::protobuf::FileDescriptor* file, |
+ const grpc::string& parameter, |
+ grpc::protobuf::compiler::GeneratorContext* context, |
+ grpc::string* error) const; |
+ private: |
+ GeneratorConfiguration config_; |
}; |
-} // namespace blink |
+std::pair<bool, grpc::string> GetServices( |
+ const grpc::protobuf::FileDescriptor* file, |
+ const GeneratorConfiguration& config); |
+ |
+} // namespace grpc_python_generator |
-#endif // PerformanceCompositeTiming_h |
+#endif // GRPC_INTERNAL_COMPILER_PYTHON_GENERATOR_H |