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

Unified Diff: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/preference_specifics.pb.cc

Issue 4124013: autofill code review. Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/preference_specifics.pb.cc
diff --git a/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/preference_specifics.pb.cc b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/preference_specifics.pb.cc
new file mode 100755
index 0000000000000000000000000000000000000000..ce27b58a72fe7e6713944889a2282b2863df3340
--- /dev/null
+++ b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/preference_specifics.pb.cc
@@ -0,0 +1,269 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+
+#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
+#include "preference_specifics.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+// @@protoc_insertion_point(includes)
+
+namespace sync_pb {
+
+void protobuf_ShutdownFile_preference_5fspecifics_2eproto() {
+ delete PreferenceSpecifics::default_instance_;
+}
+
+void protobuf_AddDesc_preference_5fspecifics_2eproto() {
+ static bool already_here = false;
+ if (already_here) return;
+ already_here = true;
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ ::sync_pb::protobuf_AddDesc_sync_2eproto();
+ PreferenceSpecifics::default_instance_ = new PreferenceSpecifics();
+ ::google::protobuf::internal::ExtensionSet::RegisterMessageExtension(
+ &::sync_pb::EntitySpecifics::default_instance(),
+ 37702, 11, false, false,
+ &::sync_pb::PreferenceSpecifics::default_instance());
+ PreferenceSpecifics::default_instance_->InitAsDefaultInstance();
+ ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_preference_5fspecifics_2eproto);
+}
+
+// Force AddDescriptors() to be called at static initialization time.
+struct StaticDescriptorInitializer_preference_5fspecifics_2eproto {
+ StaticDescriptorInitializer_preference_5fspecifics_2eproto() {
+ protobuf_AddDesc_preference_5fspecifics_2eproto();
+ }
+} static_descriptor_initializer_preference_5fspecifics_2eproto_;
+
+
+// ===================================================================
+
+const ::std::string PreferenceSpecifics::_default_name_;
+const ::std::string PreferenceSpecifics::_default_value_;
+#ifndef _MSC_VER
+const int PreferenceSpecifics::kNameFieldNumber;
+const int PreferenceSpecifics::kValueFieldNumber;
+#endif // !_MSC_VER
+
+PreferenceSpecifics::PreferenceSpecifics()
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+}
+
+void PreferenceSpecifics::InitAsDefaultInstance() {
+}
+
+PreferenceSpecifics::PreferenceSpecifics(const PreferenceSpecifics& from)
+ : ::google::protobuf::MessageLite() {
+ SharedCtor();
+ MergeFrom(from);
+}
+
+void PreferenceSpecifics::SharedCtor() {
+ _cached_size_ = 0;
+ name_ = const_cast< ::std::string*>(&_default_name_);
+ value_ = const_cast< ::std::string*>(&_default_value_);
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+PreferenceSpecifics::~PreferenceSpecifics() {
+ SharedDtor();
+}
+
+void PreferenceSpecifics::SharedDtor() {
+ if (name_ != &_default_name_) {
+ delete name_;
+ }
+ if (value_ != &_default_value_) {
+ delete value_;
+ }
+ if (this != default_instance_) {
+ }
+}
+
+void PreferenceSpecifics::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const PreferenceSpecifics& PreferenceSpecifics::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_preference_5fspecifics_2eproto(); return *default_instance_;
+}
+
+PreferenceSpecifics* PreferenceSpecifics::default_instance_ = NULL;
+
+PreferenceSpecifics* PreferenceSpecifics::New() const {
+ return new PreferenceSpecifics;
+}
+
+void PreferenceSpecifics::Clear() {
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_has_bit(0)) {
+ if (name_ != &_default_name_) {
+ name_->clear();
+ }
+ }
+ if (_has_bit(1)) {
+ if (value_ != &_default_value_) {
+ value_->clear();
+ }
+ }
+ }
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ mutable_unknown_fields()->Clear();
+}
+
+bool PreferenceSpecifics::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+ ::google::protobuf::uint32 tag;
+ while ((tag = input->ReadTag()) != 0) {
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // optional string name = 1;
+ case 1: {
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_name()));
+ } else {
+ goto handle_uninterpreted;
+ }
+ if (input->ExpectTag(18)) goto parse_value;
+ break;
+ }
+
+ // optional string value = 2;
+ case 2: {
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ parse_value:
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_value()));
+ } else {
+ goto handle_uninterpreted;
+ }
+ if (input->ExpectAtEnd()) return true;
+ break;
+ }
+
+ default: {
+ handle_uninterpreted:
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
+ return true;
+ }
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+ return true;
+#undef DO_
+}
+
+void PreferenceSpecifics::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // optional string name = 1;
+ if (_has_bit(0)) {
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 1, this->name(), output);
+ }
+
+ // optional string value = 2;
+ if (_has_bit(1)) {
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 2, this->value(), output);
+ }
+
+ if (!unknown_fields().empty()) {
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields(
+ unknown_fields(), output);
+ }
+}
+
+int PreferenceSpecifics::ByteSize() const {
+ int total_size = 0;
+
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ // optional string name = 1;
+ if (has_name()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
+ }
+
+ // optional string value = 2;
+ if (has_value()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->value());
+ }
+
+ }
+ if (!unknown_fields().empty()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize(
+ unknown_fields());
+ }
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = total_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void PreferenceSpecifics::CheckTypeAndMergeFrom(
+ const ::google::protobuf::MessageLite& from) {
+ MergeFrom(*::google::protobuf::down_cast<const PreferenceSpecifics*>(&from));
+}
+
+void PreferenceSpecifics::MergeFrom(const PreferenceSpecifics& from) {
+ GOOGLE_CHECK_NE(&from, this);
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (from._has_bit(0)) {
+ set_name(from.name());
+ }
+ if (from._has_bit(1)) {
+ set_value(from.value());
+ }
+ }
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields());
+}
+
+void PreferenceSpecifics::CopyFrom(const PreferenceSpecifics& from) {
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool PreferenceSpecifics::IsInitialized() const {
+
+ return true;
+}
+
+void PreferenceSpecifics::Swap(PreferenceSpecifics* other) {
+ if (other != this) {
+ std::swap(name_, other->name_);
+ std::swap(value_, other->value_);
+ std::swap(_has_bits_[0], other->_has_bits_[0]);
+ _unknown_fields_.Swap(&other->_unknown_fields_);
+ std::swap(_cached_size_, other->_cached_size_);
+ }
+}
+
+::std::string PreferenceSpecifics::GetTypeName() const {
+ return "sync_pb.PreferenceSpecifics";
+}
+
+::google::protobuf::internal::ExtensionIdentifier< ::sync_pb::EntitySpecifics,
+ ::google::protobuf::internal::MessageTypeTraits< ::sync_pb::PreferenceSpecifics >, 11, false >
+ preference(kPreferenceFieldNumber, ::sync_pb::PreferenceSpecifics::default_instance());
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace sync_pb
+
+// @@protoc_insertion_point(global_scope)

Powered by Google App Engine
This is Rietveld 408576698