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

Unified Diff: third_party/grpc/src/compiler/objective_c_generator.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
Index: third_party/grpc/src/compiler/objective_c_generator.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.idl b/third_party/grpc/src/compiler/objective_c_generator.h
similarity index 68%
copy from third_party/WebKit/Source/modules/filesystem/DOMFileSystem.idl
copy to third_party/grpc/src/compiler/objective_c_generator.h
index 5abd5475d555f098c3f52d8512667cdd509cf62b..40a0c87f99cef46d0167a1bd465d1aead805f1e8 100644
--- a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.idl
+++ b/third_party/grpc/src/compiler/objective_c_generator.h
@@ -1,6 +1,7 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
- * Copyright (C) 2011 Apple 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
@@ -27,13 +28,27 @@
* 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.
+ *
*/
-[
- ActiveScriptWrappable,
- DependentLifetime,
- NoInterfaceObject,
-] interface DOMFileSystem {
- readonly attribute DOMString name;
- readonly attribute DirectoryEntry root;
-};
+#ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
+#define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
+
+#include "src/compiler/config.h"
+
+namespace grpc_objective_c_generator {
+
+using ::grpc::protobuf::ServiceDescriptor;
+using ::grpc::string;
+
+// Returns the content to be included in the "global_scope" insertion point of
+// the generated header file.
+string GetHeader(const ServiceDescriptor *service);
+
+// Returns the content to be included in the "global_scope" insertion point of
+// the generated implementation file.
+string GetSource(const ServiceDescriptor *service);
+
+} // namespace grpc_objective_c_generator
+
+#endif // GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
« no previous file with comments | « third_party/grpc/src/compiler/generator_helpers.h ('k') | third_party/grpc/src/compiler/objective_c_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698