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

Side by Side Diff: third_party/protobuf/src/google/protobuf/message_lite.cc

Issue 21208003: Update protobuf to r428, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // http://code.google.com/p/protobuf/ 3 // http://code.google.com/p/protobuf/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 19 matching lines...) Expand all
30 30
31 // Authors: wink@google.com (Wink Saville), 31 // Authors: wink@google.com (Wink Saville),
32 // kenton@google.com (Kenton Varda) 32 // kenton@google.com (Kenton Varda)
33 // Based on original Protocol Buffers design by 33 // Based on original Protocol Buffers design by
34 // Sanjay Ghemawat, Jeff Dean, and others. 34 // Sanjay Ghemawat, Jeff Dean, and others.
35 35
36 #include <google/protobuf/message_lite.h> 36 #include <google/protobuf/message_lite.h>
37 #include <string> 37 #include <string>
38 #include <google/protobuf/stubs/common.h> 38 #include <google/protobuf/stubs/common.h>
39 #include <google/protobuf/io/coded_stream.h> 39 #include <google/protobuf/io/coded_stream.h>
40 #include <google/protobuf/io/zero_copy_stream_impl.h> 40 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
41 #include <google/protobuf/stubs/stl_util-inl.h> 41 #include <google/protobuf/stubs/stl_util.h>
42 42
43 namespace google { 43 namespace google {
44 namespace protobuf { 44 namespace protobuf {
45 45
46 MessageLite::~MessageLite() {} 46 MessageLite::~MessageLite() {}
47 47
48 string MessageLite::InitializationErrorString() const { 48 string MessageLite::InitializationErrorString() const {
49 return "(cannot determine missing fields for lite message)"; 49 return "(cannot determine missing fields for lite message)";
50 } 50 }
51 51
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 string MessageLite::SerializePartialAsString() const { 326 string MessageLite::SerializePartialAsString() const {
327 string output; 327 string output;
328 if (!AppendPartialToString(&output)) 328 if (!AppendPartialToString(&output))
329 output.clear(); 329 output.clear();
330 return output; 330 return output;
331 } 331 }
332 332
333 } // namespace protobuf 333 } // namespace protobuf
334 } // namespace google 334 } // namespace google
OLDNEW
« no previous file with comments | « third_party/protobuf/src/google/protobuf/message_lite.h ('k') | third_party/protobuf/src/google/protobuf/message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698