Index: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/session_specifics.pb.cc |
diff --git a/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/session_specifics.pb.cc b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/session_specifics.pb.cc |
new file mode 100755 |
index 0000000000000000000000000000000000000000..225fa98e17e66de1a017e59b45859bc3e8b02fa2 |
--- /dev/null |
+++ b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/session_specifics.pb.cc |
@@ -0,0 +1,1316 @@ |
+// Generated by the protocol buffer compiler. DO NOT EDIT! |
+ |
+#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
+#include "session_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_session_5fspecifics_2eproto() { |
+ delete SessionSpecifics::default_instance_; |
+ delete SessionWindow::default_instance_; |
+ delete SessionTab::default_instance_; |
+ delete TabNavigation::default_instance_; |
+} |
+ |
+void protobuf_AddDesc_session_5fspecifics_2eproto() { |
+ static bool already_here = false; |
+ if (already_here) return; |
+ already_here = true; |
+ GOOGLE_PROTOBUF_VERIFY_VERSION; |
+ |
+ ::sync_pb::protobuf_AddDesc_sync_2eproto(); |
+ SessionSpecifics::default_instance_ = new SessionSpecifics(); |
+ SessionWindow::default_instance_ = new SessionWindow(); |
+ SessionTab::default_instance_ = new SessionTab(); |
+ TabNavigation::default_instance_ = new TabNavigation(); |
+ ::google::protobuf::internal::ExtensionSet::RegisterMessageExtension( |
+ &::sync_pb::EntitySpecifics::default_instance(), |
+ 50119, 11, false, false, |
+ &::sync_pb::SessionSpecifics::default_instance()); |
+ SessionSpecifics::default_instance_->InitAsDefaultInstance(); |
+ SessionWindow::default_instance_->InitAsDefaultInstance(); |
+ SessionTab::default_instance_->InitAsDefaultInstance(); |
+ TabNavigation::default_instance_->InitAsDefaultInstance(); |
+ ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_session_5fspecifics_2eproto); |
+} |
+ |
+// Force AddDescriptors() to be called at static initialization time. |
+struct StaticDescriptorInitializer_session_5fspecifics_2eproto { |
+ StaticDescriptorInitializer_session_5fspecifics_2eproto() { |
+ protobuf_AddDesc_session_5fspecifics_2eproto(); |
+ } |
+} static_descriptor_initializer_session_5fspecifics_2eproto_; |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string SessionSpecifics::_default_session_tag_; |
+#ifndef _MSC_VER |
+const int SessionSpecifics::kSessionTagFieldNumber; |
+const int SessionSpecifics::kSessionWindowFieldNumber; |
+#endif // !_MSC_VER |
+ |
+SessionSpecifics::SessionSpecifics() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void SessionSpecifics::InitAsDefaultInstance() { |
+} |
+ |
+SessionSpecifics::SessionSpecifics(const SessionSpecifics& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void SessionSpecifics::SharedCtor() { |
+ _cached_size_ = 0; |
+ session_tag_ = const_cast< ::std::string*>(&_default_session_tag_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+SessionSpecifics::~SessionSpecifics() { |
+ SharedDtor(); |
+} |
+ |
+void SessionSpecifics::SharedDtor() { |
+ if (session_tag_ != &_default_session_tag_) { |
+ delete session_tag_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void SessionSpecifics::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const SessionSpecifics& SessionSpecifics::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_session_5fspecifics_2eproto(); return *default_instance_; |
+} |
+ |
+SessionSpecifics* SessionSpecifics::default_instance_ = NULL; |
+ |
+SessionSpecifics* SessionSpecifics::New() const { |
+ return new SessionSpecifics; |
+} |
+ |
+void SessionSpecifics::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (session_tag_ != &_default_session_tag_) { |
+ session_tag_->clear(); |
+ } |
+ } |
+ } |
+ session_window_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool SessionSpecifics::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 session_tag = 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_session_tag())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_session_window; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.SessionWindow session_window = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_session_window: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_session_window())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_session_window; |
+ 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 SessionSpecifics::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional string session_tag = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->session_tag(), output); |
+ } |
+ |
+ // repeated .sync_pb.SessionWindow session_window = 2; |
+ for (int i = 0; i < this->session_window_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 2, this->session_window(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int SessionSpecifics::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional string session_tag = 1; |
+ if (has_session_tag()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->session_tag()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.SessionWindow session_window = 2; |
+ total_size += 1 * this->session_window_size(); |
+ for (int i = 0; i < this->session_window_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->session_window(i)); |
+ } |
+ |
+ 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 SessionSpecifics::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const SessionSpecifics*>(&from)); |
+} |
+ |
+void SessionSpecifics::MergeFrom(const SessionSpecifics& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ session_window_.MergeFrom(from.session_window_); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_session_tag(from.session_tag()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void SessionSpecifics::CopyFrom(const SessionSpecifics& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool SessionSpecifics::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void SessionSpecifics::Swap(SessionSpecifics* other) { |
+ if (other != this) { |
+ std::swap(session_tag_, other->session_tag_); |
+ session_window_.Swap(&other->session_window_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string SessionSpecifics::GetTypeName() const { |
+ return "sync_pb.SessionSpecifics"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool SessionWindow_BrowserType_IsValid(int value) { |
+ switch(value) { |
+ case 1: |
+ case 2: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const SessionWindow_BrowserType SessionWindow::TYPE_NORMAL; |
+const SessionWindow_BrowserType SessionWindow::TYPE_POPUP; |
+const SessionWindow_BrowserType SessionWindow::BrowserType_MIN; |
+const SessionWindow_BrowserType SessionWindow::BrowserType_MAX; |
+const int SessionWindow::BrowserType_ARRAYSIZE; |
+#endif // _MSC_VER |
+#ifndef _MSC_VER |
+const int SessionWindow::kSelectedTabIndexFieldNumber; |
+const int SessionWindow::kBrowserTypeFieldNumber; |
+const int SessionWindow::kSessionTabFieldNumber; |
+#endif // !_MSC_VER |
+ |
+SessionWindow::SessionWindow() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void SessionWindow::InitAsDefaultInstance() { |
+} |
+ |
+SessionWindow::SessionWindow(const SessionWindow& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void SessionWindow::SharedCtor() { |
+ _cached_size_ = 0; |
+ selected_tab_index_ = -1; |
+ browser_type_ = 1; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+SessionWindow::~SessionWindow() { |
+ SharedDtor(); |
+} |
+ |
+void SessionWindow::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void SessionWindow::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const SessionWindow& SessionWindow::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_session_5fspecifics_2eproto(); return *default_instance_; |
+} |
+ |
+SessionWindow* SessionWindow::default_instance_ = NULL; |
+ |
+SessionWindow* SessionWindow::New() const { |
+ return new SessionWindow; |
+} |
+ |
+void SessionWindow::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ selected_tab_index_ = -1; |
+ browser_type_ = 1; |
+ } |
+ session_tab_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool SessionWindow::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 int32 selected_tab_index = 2 [default = -1]; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &selected_tab_index_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_browser_type; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.SessionWindow.BrowserType browser_type = 3 [default = TYPE_NORMAL]; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_browser_type: |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::SessionWindow_BrowserType_IsValid(value)) { |
+ set_browser_type(static_cast< ::sync_pb::SessionWindow_BrowserType >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(3, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_session_tab; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.SessionTab session_tab = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_session_tab: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_session_tab())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_session_tab; |
+ 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 SessionWindow::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int32 selected_tab_index = 2 [default = -1]; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->selected_tab_index(), output); |
+ } |
+ |
+ // optional .sync_pb.SessionWindow.BrowserType browser_type = 3 [default = TYPE_NORMAL]; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 3, this->browser_type(), output); |
+ } |
+ |
+ // repeated .sync_pb.SessionTab session_tab = 4; |
+ for (int i = 0; i < this->session_tab_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 4, this->session_tab(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int SessionWindow::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int32 selected_tab_index = 2 [default = -1]; |
+ if (has_selected_tab_index()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->selected_tab_index()); |
+ } |
+ |
+ // optional .sync_pb.SessionWindow.BrowserType browser_type = 3 [default = TYPE_NORMAL]; |
+ if (has_browser_type()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->browser_type()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.SessionTab session_tab = 4; |
+ total_size += 1 * this->session_tab_size(); |
+ for (int i = 0; i < this->session_tab_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->session_tab(i)); |
+ } |
+ |
+ 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 SessionWindow::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const SessionWindow*>(&from)); |
+} |
+ |
+void SessionWindow::MergeFrom(const SessionWindow& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ session_tab_.MergeFrom(from.session_tab_); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_selected_tab_index(from.selected_tab_index()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_browser_type(from.browser_type()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void SessionWindow::CopyFrom(const SessionWindow& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool SessionWindow::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void SessionWindow::Swap(SessionWindow* other) { |
+ if (other != this) { |
+ std::swap(selected_tab_index_, other->selected_tab_index_); |
+ std::swap(browser_type_, other->browser_type_); |
+ session_tab_.Swap(&other->session_tab_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string SessionWindow::GetTypeName() const { |
+ return "sync_pb.SessionWindow"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string SessionTab::_default_extension_app_id_; |
+#ifndef _MSC_VER |
+const int SessionTab::kTabVisualIndexFieldNumber; |
+const int SessionTab::kCurrentNavigationIndexFieldNumber; |
+const int SessionTab::kPinnedFieldNumber; |
+const int SessionTab::kExtensionAppIdFieldNumber; |
+const int SessionTab::kNavigationFieldNumber; |
+#endif // !_MSC_VER |
+ |
+SessionTab::SessionTab() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void SessionTab::InitAsDefaultInstance() { |
+} |
+ |
+SessionTab::SessionTab(const SessionTab& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void SessionTab::SharedCtor() { |
+ _cached_size_ = 0; |
+ tab_visual_index_ = -1; |
+ current_navigation_index_ = -1; |
+ pinned_ = false; |
+ extension_app_id_ = const_cast< ::std::string*>(&_default_extension_app_id_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+SessionTab::~SessionTab() { |
+ SharedDtor(); |
+} |
+ |
+void SessionTab::SharedDtor() { |
+ if (extension_app_id_ != &_default_extension_app_id_) { |
+ delete extension_app_id_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void SessionTab::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const SessionTab& SessionTab::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_session_5fspecifics_2eproto(); return *default_instance_; |
+} |
+ |
+SessionTab* SessionTab::default_instance_ = NULL; |
+ |
+SessionTab* SessionTab::New() const { |
+ return new SessionTab; |
+} |
+ |
+void SessionTab::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ tab_visual_index_ = -1; |
+ current_navigation_index_ = -1; |
+ pinned_ = false; |
+ if (_has_bit(3)) { |
+ if (extension_app_id_ != &_default_extension_app_id_) { |
+ extension_app_id_->clear(); |
+ } |
+ } |
+ } |
+ navigation_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool SessionTab::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 int32 tab_visual_index = 2 [default = -1]; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &tab_visual_index_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_current_navigation_index; |
+ break; |
+ } |
+ |
+ // optional int32 current_navigation_index = 3 [default = -1]; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_current_navigation_index: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, ¤t_navigation_index_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(32)) goto parse_pinned; |
+ break; |
+ } |
+ |
+ // optional bool pinned = 4 [default = false]; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_pinned: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &pinned_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_extension_app_id; |
+ break; |
+ } |
+ |
+ // optional string extension_app_id = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_extension_app_id: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_extension_app_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_navigation; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.TabNavigation navigation = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_navigation: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_navigation())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_navigation; |
+ 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 SessionTab::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int32 tab_visual_index = 2 [default = -1]; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->tab_visual_index(), output); |
+ } |
+ |
+ // optional int32 current_navigation_index = 3 [default = -1]; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->current_navigation_index(), output); |
+ } |
+ |
+ // optional bool pinned = 4 [default = false]; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->pinned(), output); |
+ } |
+ |
+ // optional string extension_app_id = 5; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 5, this->extension_app_id(), output); |
+ } |
+ |
+ // repeated .sync_pb.TabNavigation navigation = 6; |
+ for (int i = 0; i < this->navigation_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 6, this->navigation(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int SessionTab::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int32 tab_visual_index = 2 [default = -1]; |
+ if (has_tab_visual_index()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->tab_visual_index()); |
+ } |
+ |
+ // optional int32 current_navigation_index = 3 [default = -1]; |
+ if (has_current_navigation_index()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->current_navigation_index()); |
+ } |
+ |
+ // optional bool pinned = 4 [default = false]; |
+ if (has_pinned()) { |
+ total_size += 1 + 1; |
+ } |
+ |
+ // optional string extension_app_id = 5; |
+ if (has_extension_app_id()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->extension_app_id()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.TabNavigation navigation = 6; |
+ total_size += 1 * this->navigation_size(); |
+ for (int i = 0; i < this->navigation_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->navigation(i)); |
+ } |
+ |
+ 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 SessionTab::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const SessionTab*>(&from)); |
+} |
+ |
+void SessionTab::MergeFrom(const SessionTab& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ navigation_.MergeFrom(from.navigation_); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_tab_visual_index(from.tab_visual_index()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_current_navigation_index(from.current_navigation_index()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_pinned(from.pinned()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_extension_app_id(from.extension_app_id()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void SessionTab::CopyFrom(const SessionTab& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool SessionTab::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void SessionTab::Swap(SessionTab* other) { |
+ if (other != this) { |
+ std::swap(tab_visual_index_, other->tab_visual_index_); |
+ std::swap(current_navigation_index_, other->current_navigation_index_); |
+ std::swap(pinned_, other->pinned_); |
+ std::swap(extension_app_id_, other->extension_app_id_); |
+ navigation_.Swap(&other->navigation_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string SessionTab::GetTypeName() const { |
+ return "sync_pb.SessionTab"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool TabNavigation_PageTransition_IsValid(int value) { |
+ switch(value) { |
+ case 0: |
+ case 1: |
+ case 2: |
+ case 3: |
+ case 4: |
+ case 5: |
+ case 6: |
+ case 7: |
+ case 8: |
+ case 9: |
+ case 10: |
+ case 12: |
+ case 13: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const TabNavigation_PageTransition TabNavigation::LINK; |
+const TabNavigation_PageTransition TabNavigation::TYPED; |
+const TabNavigation_PageTransition TabNavigation::AUTO_BOOKMARK; |
+const TabNavigation_PageTransition TabNavigation::AUTO_SUBFRAME; |
+const TabNavigation_PageTransition TabNavigation::MANUAL_SUBFRAME; |
+const TabNavigation_PageTransition TabNavigation::GENERATED; |
+const TabNavigation_PageTransition TabNavigation::START_PAGE; |
+const TabNavigation_PageTransition TabNavigation::FORM_SUBMIT; |
+const TabNavigation_PageTransition TabNavigation::RELOAD; |
+const TabNavigation_PageTransition TabNavigation::KEYWORD; |
+const TabNavigation_PageTransition TabNavigation::KEYWORD_GENERATED; |
+const TabNavigation_PageTransition TabNavigation::CHAIN_START; |
+const TabNavigation_PageTransition TabNavigation::CHAIN_END; |
+const TabNavigation_PageTransition TabNavigation::PageTransition_MIN; |
+const TabNavigation_PageTransition TabNavigation::PageTransition_MAX; |
+const int TabNavigation::PageTransition_ARRAYSIZE; |
+#endif // _MSC_VER |
+bool TabNavigation_PageTransitionQualifier_IsValid(int value) { |
+ switch(value) { |
+ case 1: |
+ case 2: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const TabNavigation_PageTransitionQualifier TabNavigation::CLIENT_REDIRECT; |
+const TabNavigation_PageTransitionQualifier TabNavigation::SERVER_REDIRECT; |
+const TabNavigation_PageTransitionQualifier TabNavigation::PageTransitionQualifier_MIN; |
+const TabNavigation_PageTransitionQualifier TabNavigation::PageTransitionQualifier_MAX; |
+const int TabNavigation::PageTransitionQualifier_ARRAYSIZE; |
+#endif // _MSC_VER |
+const ::std::string TabNavigation::_default_virtual_url_; |
+const ::std::string TabNavigation::_default_referrer_; |
+const ::std::string TabNavigation::_default_title_; |
+const ::std::string TabNavigation::_default_state_; |
+#ifndef _MSC_VER |
+const int TabNavigation::kIndexFieldNumber; |
+const int TabNavigation::kVirtualUrlFieldNumber; |
+const int TabNavigation::kReferrerFieldNumber; |
+const int TabNavigation::kTitleFieldNumber; |
+const int TabNavigation::kStateFieldNumber; |
+const int TabNavigation::kPageTransitionFieldNumber; |
+const int TabNavigation::kNavigationQualifierFieldNumber; |
+#endif // !_MSC_VER |
+ |
+TabNavigation::TabNavigation() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void TabNavigation::InitAsDefaultInstance() { |
+} |
+ |
+TabNavigation::TabNavigation(const TabNavigation& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void TabNavigation::SharedCtor() { |
+ _cached_size_ = 0; |
+ index_ = -1; |
+ virtual_url_ = const_cast< ::std::string*>(&_default_virtual_url_); |
+ referrer_ = const_cast< ::std::string*>(&_default_referrer_); |
+ title_ = const_cast< ::std::string*>(&_default_title_); |
+ state_ = const_cast< ::std::string*>(&_default_state_); |
+ page_transition_ = 1; |
+ navigation_qualifier_ = 1; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+TabNavigation::~TabNavigation() { |
+ SharedDtor(); |
+} |
+ |
+void TabNavigation::SharedDtor() { |
+ if (virtual_url_ != &_default_virtual_url_) { |
+ delete virtual_url_; |
+ } |
+ if (referrer_ != &_default_referrer_) { |
+ delete referrer_; |
+ } |
+ if (title_ != &_default_title_) { |
+ delete title_; |
+ } |
+ if (state_ != &_default_state_) { |
+ delete state_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void TabNavigation::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const TabNavigation& TabNavigation::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_session_5fspecifics_2eproto(); return *default_instance_; |
+} |
+ |
+TabNavigation* TabNavigation::default_instance_ = NULL; |
+ |
+TabNavigation* TabNavigation::New() const { |
+ return new TabNavigation; |
+} |
+ |
+void TabNavigation::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ index_ = -1; |
+ if (_has_bit(1)) { |
+ if (virtual_url_ != &_default_virtual_url_) { |
+ virtual_url_->clear(); |
+ } |
+ } |
+ if (_has_bit(2)) { |
+ if (referrer_ != &_default_referrer_) { |
+ referrer_->clear(); |
+ } |
+ } |
+ if (_has_bit(3)) { |
+ if (title_ != &_default_title_) { |
+ title_->clear(); |
+ } |
+ } |
+ if (_has_bit(4)) { |
+ if (state_ != &_default_state_) { |
+ state_->clear(); |
+ } |
+ } |
+ page_transition_ = 1; |
+ navigation_qualifier_ = 1; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool TabNavigation::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 int32 index = 1 [default = -1]; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &index_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_virtual_url; |
+ break; |
+ } |
+ |
+ // optional string virtual_url = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_virtual_url: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_virtual_url())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_referrer; |
+ break; |
+ } |
+ |
+ // optional string referrer = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_referrer: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_referrer())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_title; |
+ break; |
+ } |
+ |
+ // optional string title = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_title: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_title())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_state; |
+ break; |
+ } |
+ |
+ // optional string state = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_state: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_state())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(48)) goto parse_page_transition; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransition page_transition = 6 [default = TYPED]; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_page_transition: |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::TabNavigation_PageTransition_IsValid(value)) { |
+ set_page_transition(static_cast< ::sync_pb::TabNavigation_PageTransition >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(6, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(56)) goto parse_navigation_qualifier; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransitionQualifier navigation_qualifier = 7; |
+ case 7: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_navigation_qualifier: |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::TabNavigation_PageTransitionQualifier_IsValid(value)) { |
+ set_navigation_qualifier(static_cast< ::sync_pb::TabNavigation_PageTransitionQualifier >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(7, 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 TabNavigation::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int32 index = 1 [default = -1]; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->index(), output); |
+ } |
+ |
+ // optional string virtual_url = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 2, this->virtual_url(), output); |
+ } |
+ |
+ // optional string referrer = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 3, this->referrer(), output); |
+ } |
+ |
+ // optional string title = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 4, this->title(), output); |
+ } |
+ |
+ // optional string state = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 5, this->state(), output); |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransition page_transition = 6 [default = TYPED]; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 6, this->page_transition(), output); |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransitionQualifier navigation_qualifier = 7; |
+ if (_has_bit(6)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 7, this->navigation_qualifier(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int TabNavigation::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int32 index = 1 [default = -1]; |
+ if (has_index()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->index()); |
+ } |
+ |
+ // optional string virtual_url = 2; |
+ if (has_virtual_url()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->virtual_url()); |
+ } |
+ |
+ // optional string referrer = 3; |
+ if (has_referrer()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->referrer()); |
+ } |
+ |
+ // optional string title = 4; |
+ if (has_title()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->title()); |
+ } |
+ |
+ // optional string state = 5; |
+ if (has_state()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->state()); |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransition page_transition = 6 [default = TYPED]; |
+ if (has_page_transition()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->page_transition()); |
+ } |
+ |
+ // optional .sync_pb.TabNavigation.PageTransitionQualifier navigation_qualifier = 7; |
+ if (has_navigation_qualifier()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->navigation_qualifier()); |
+ } |
+ |
+ } |
+ 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 TabNavigation::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const TabNavigation*>(&from)); |
+} |
+ |
+void TabNavigation::MergeFrom(const TabNavigation& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_index(from.index()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_virtual_url(from.virtual_url()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_referrer(from.referrer()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_title(from.title()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_state(from.state()); |
+ } |
+ if (from._has_bit(5)) { |
+ set_page_transition(from.page_transition()); |
+ } |
+ if (from._has_bit(6)) { |
+ set_navigation_qualifier(from.navigation_qualifier()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void TabNavigation::CopyFrom(const TabNavigation& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool TabNavigation::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void TabNavigation::Swap(TabNavigation* other) { |
+ if (other != this) { |
+ std::swap(index_, other->index_); |
+ std::swap(virtual_url_, other->virtual_url_); |
+ std::swap(referrer_, other->referrer_); |
+ std::swap(title_, other->title_); |
+ std::swap(state_, other->state_); |
+ std::swap(page_transition_, other->page_transition_); |
+ std::swap(navigation_qualifier_, other->navigation_qualifier_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string TabNavigation::GetTypeName() const { |
+ return "sync_pb.TabNavigation"; |
+} |
+ |
+::google::protobuf::internal::ExtensionIdentifier< ::sync_pb::EntitySpecifics, |
+ ::google::protobuf::internal::MessageTypeTraits< ::sync_pb::SessionSpecifics >, 11, false > |
+ session(kSessionFieldNumber, ::sync_pb::SessionSpecifics::default_instance()); |
+ |
+// @@protoc_insertion_point(namespace_scope) |
+ |
+} // namespace sync_pb |
+ |
+// @@protoc_insertion_point(global_scope) |