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

Unified Diff: third_party/protobuf/objectivec/GPBRootObject.h

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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/protobuf/objectivec/GPBRootObject.h
diff --git a/third_party/protobuf/src/google/protobuf/unittest_import_public_lite.proto b/third_party/protobuf/objectivec/GPBRootObject.h
similarity index 80%
copy from third_party/protobuf/src/google/protobuf/unittest_import_public_lite.proto
copy to third_party/protobuf/objectivec/GPBRootObject.h
index d077563cbd84d7be6daddec3f553cb564f23da0a..e2af5d974837a58ec4a2ba7d1d0d020e2ea16d92 100644
--- a/third_party/protobuf/src/google/protobuf/unittest_import_public_lite.proto
+++ b/third_party/protobuf/objectivec/GPBRootObject.h
@@ -1,6 +1,6 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
-// http://code.google.com/p/protobuf/
+// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -28,15 +28,19 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Author: liujisi@google.com (Pherl Liu)
+#import <Foundation/Foundation.h>
+@class GPBExtensionRegistry;
-package protobuf_unittest_import;
+NS_ASSUME_NONNULL_BEGIN
-option optimize_for = LITE_RUNTIME;
+// All Root Objects derive from GPBRootObject. It supplies a registry
+// for derived classes to register their extensions to.
+@interface GPBRootObject : NSObject
-option java_package = "com.google.protobuf";
+// Per class registry.
++ (GPBExtensionRegistry *)extensionRegistry;
-message PublicImportMessageLite {
- optional int32 e = 1;
-}
+@end
+
+NS_ASSUME_NONNULL_END
« no previous file with comments | « third_party/protobuf/objectivec/GPBProtocolBuffers_RuntimeSupport.h ('k') | third_party/protobuf/objectivec/GPBRootObject.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698