Lines Matching refs:base
46 namespace base {
108 static inline void WriteParam(base::Pickle* m, const P& p) { in WriteParam()
114 static inline bool WARN_UNUSED_RESULT ReadParam(const base::Pickle* m, in ReadParam()
115 base::PickleIterator* iter, in ReadParam()
132 static void Write(base::Pickle* m, const param_type& p) { m->WriteBool(p); }
133 static bool Read(const base::Pickle* m,
134 base::PickleIterator* iter,
144 static void Write(base::Pickle* m, const param_type& p);
145 static bool Read(const base::Pickle* m,
146 base::PickleIterator* iter,
154 static void Write(base::Pickle* m, const param_type& p);
155 static bool Read(const base::Pickle* m,
156 base::PickleIterator* iter,
164 static void Write(base::Pickle* m, const param_type& p);
165 static bool Read(const base::Pickle* m,
166 base::PickleIterator* iter,
174 static void Write(base::Pickle* m, const param_type& p) { m->WriteInt(p); }
175 static bool Read(const base::Pickle* m,
176 base::PickleIterator* iter,
186 static void Write(base::Pickle* m, const param_type& p) { m->WriteInt(p); }
187 static bool Read(const base::Pickle* m,
188 base::PickleIterator* iter,
211 static void Write(base::Pickle* m, const param_type& p) {
214 static bool Read(const base::Pickle* m,
215 base::PickleIterator* iter,
225 static void Write(base::Pickle* m, const param_type& p) {
228 static bool Read(const base::Pickle* m,
229 base::PickleIterator* iter,
240 static void Write(base::Pickle* m, const param_type& p) {
243 static bool Read(const base::Pickle* m,
244 base::PickleIterator* iter,
254 static void Write(base::Pickle* m, const param_type& p) { m->WriteInt64(p); }
255 static bool Read(const base::Pickle* m,
256 base::PickleIterator* iter,
269 static void Write(base::Pickle* m, const param_type& p) { m->WriteFloat(p); }
270 static bool Read(const base::Pickle* m,
271 base::PickleIterator* iter,
281 static void Write(base::Pickle* m, const param_type& p);
282 static bool Read(const base::Pickle* m,
283 base::PickleIterator* iter,
291 static void Write(base::Pickle* m, const param_type& p) {
295 static bool Read(const base::Pickle* m,
296 base::PickleIterator* iter,
320 static void Write(base::Pickle* m, const param_type& p) { m->WriteString(p); }
321 static bool Read(const base::Pickle* m,
322 base::PickleIterator* iter,
330 struct ParamTraits<base::string16> {
331 typedef base::string16 param_type;
332 static void Write(base::Pickle* m, const param_type& p) {
335 static bool Read(const base::Pickle* m,
336 base::PickleIterator* iter,
346 static void Write(base::Pickle* m, const param_type& p);
347 static bool Read(const base::Pickle*,
348 base::PickleIterator* iter,
356 static void Write(base::Pickle* m, const param_type& p);
357 static bool Read(const base::Pickle* m,
358 base::PickleIterator* iter,
366 static void Write(base::Pickle* m, const param_type& p);
367 static bool Read(const base::Pickle* m,
368 base::PickleIterator* iter,
376 static void Write(base::Pickle* m, const param_type& p) {
377 WriteParam(m, base::checked_cast<int>(p.size()));
381 static bool Read(const base::Pickle* m,
382 base::PickleIterator* iter,
410 static void Write(base::Pickle* m, const param_type& p) {
411 WriteParam(m, base::checked_cast<int>(p.size()));
416 static bool Read(const base::Pickle* m,
417 base::PickleIterator* iter,
438 static void Write(base::Pickle* m, const param_type& p) {
439 WriteParam(m, base::checked_cast<int>(p.size()));
445 static bool Read(const base::Pickle* m,
446 base::PickleIterator* iter,
469 static void Write(base::Pickle* m, const param_type& p) {
470 WriteParam(m, base::checked_cast<int>(p.size()));
476 static bool Read(const base::Pickle* m,
477 base::PickleIterator* iter,
500 static void Write(base::Pickle* m, const param_type& p) {
504 static bool Read(const base::Pickle* m,
505 base::PickleIterator* iter,
521 struct COMPONENT_EXPORT(IPC) ParamTraits<base::DictionaryValue> {
522 typedef base::DictionaryValue param_type;
523 static void Write(base::Pickle* m, const param_type& p);
524 static bool Read(const base::Pickle* m,
525 base::PickleIterator* iter,
547 struct COMPONENT_EXPORT(IPC) ParamTraits<base::FileDescriptor> {
548 typedef base::FileDescriptor param_type;
549 static void Write(base::Pickle* m, const param_type& p);
550 static bool Read(const base::Pickle* m,
551 base::PickleIterator* iter,
558 struct COMPONENT_EXPORT(IPC) ParamTraits<base::SharedMemoryHandle> {
559 typedef base::SharedMemoryHandle param_type;
560 static void Write(base::Pickle* m, const param_type& p);
561 static bool Read(const base::Pickle* m,
562 base::PickleIterator* iter,
571 static void Write(base::Pickle* m, const param_type& p);
572 static bool Read(const base::Pickle* m,
573 base::PickleIterator* iter,
580 struct COMPONENT_EXPORT(IPC) ParamTraits<base::ReadOnlySharedMemoryRegion> {
581 typedef base::ReadOnlySharedMemoryRegion param_type;
582 static void Write(base::Pickle* m, const param_type& p);
583 static bool Read(const base::Pickle* m,
584 base::PickleIterator* iter,
590 struct COMPONENT_EXPORT(IPC) ParamTraits<base::WritableSharedMemoryRegion> {
591 typedef base::WritableSharedMemoryRegion param_type;
592 static void Write(base::Pickle* m, const param_type& p);
593 static bool Read(const base::Pickle* m,
594 base::PickleIterator* iter,
600 struct COMPONENT_EXPORT(IPC) ParamTraits<base::UnsafeSharedMemoryRegion> {
601 typedef base::UnsafeSharedMemoryRegion param_type;
602 static void Write(base::Pickle* m, const param_type& p);
603 static bool Read(const base::Pickle* m,
604 base::PickleIterator* iter,
611 ParamTraits<base::subtle::PlatformSharedMemoryRegion> {
612 typedef base::subtle::PlatformSharedMemoryRegion param_type;
613 static void Write(base::Pickle* m, const param_type& p);
614 static bool Read(const base::Pickle* m,
615 base::PickleIterator* iter,
622 ParamTraits<base::subtle::PlatformSharedMemoryRegion::Mode> {
623 typedef base::subtle::PlatformSharedMemoryRegion::Mode param_type;
624 static void Write(base::Pickle* m, const param_type& p);
625 static bool Read(const base::Pickle* m,
626 base::PickleIterator* iter,
635 static void Write(base::Pickle* m, const param_type& p);
636 static bool Read(const base::Pickle* m,
637 base::PickleIterator* iter,
644 struct COMPONENT_EXPORT(IPC) ParamTraits<base::FilePath> {
645 typedef base::FilePath param_type;
646 static void Write(base::Pickle* m, const param_type& p);
647 static bool Read(const base::Pickle* m,
648 base::PickleIterator* iter,
654 struct COMPONENT_EXPORT(IPC) ParamTraits<base::ListValue> {
655 typedef base::ListValue param_type;
656 static void Write(base::Pickle* m, const param_type& p);
657 static bool Read(const base::Pickle* m,
658 base::PickleIterator* iter,
664 struct COMPONENT_EXPORT(IPC) ParamTraits<base::NullableString16> {
665 typedef base::NullableString16 param_type;
666 static void Write(base::Pickle* m, const param_type& p);
667 static bool Read(const base::Pickle* m,
668 base::PickleIterator* iter,
674 struct COMPONENT_EXPORT(IPC) ParamTraits<base::File::Info> {
675 typedef base::File::Info param_type;
676 static void Write(base::Pickle* m, const param_type& p);
677 static bool Read(const base::Pickle* m,
678 base::PickleIterator* iter,
684 struct SimilarTypeTraits<base::File::Error> {
696 struct COMPONENT_EXPORT(IPC) ParamTraits<base::Time> {
697 typedef base::Time param_type;
698 static void Write(base::Pickle* m, const param_type& p);
699 static bool Read(const base::Pickle* m,
700 base::PickleIterator* iter,
706 struct COMPONENT_EXPORT(IPC) ParamTraits<base::TimeDelta> {
707 typedef base::TimeDelta param_type;
708 static void Write(base::Pickle* m, const param_type& p);
709 static bool Read(const base::Pickle* m,
710 base::PickleIterator* iter,
716 struct COMPONENT_EXPORT(IPC) ParamTraits<base::TimeTicks> {
717 typedef base::TimeTicks param_type;
718 static void Write(base::Pickle* m, const param_type& p);
719 static bool Read(const base::Pickle* m,
720 base::PickleIterator* iter,
726 struct COMPONENT_EXPORT(IPC) ParamTraits<base::UnguessableToken> {
727 typedef base::UnguessableToken param_type;
728 static void Write(base::Pickle* m, const param_type& p);
729 static bool Read(const base::Pickle* m,
730 base::PickleIterator* iter,
738 static void Write(base::Pickle* m, const param_type& p) {}
739 static bool Read(const base::Pickle* m,
740 base::PickleIterator* iter,
752 static void Write(base::Pickle* m, const T& p) {
757 static bool Read(const base::Pickle* m, base::PickleIterator* iter, T* r) {
771 static void Write(base::Pickle* m, const T& p) {}
772 static bool Read(const base::Pickle* m, base::PickleIterator* iter, T* r) {
784 static void Write(base::Pickle* m, const param_type& p) {
788 static bool Read(const base::Pickle* m,
789 base::PickleIterator* iter,
798 struct ParamTraits<base::StackVector<P, stack_capacity> > {
799 typedef base::StackVector<P, stack_capacity> param_type;
800 static void Write(base::Pickle* m, const param_type& p) {
801 WriteParam(m, base::checked_cast<int>(p->size()));
805 static bool Read(const base::Pickle* m,
806 base::PickleIterator* iter,
836 struct ParamTraits<base::small_map<NormalMap, kArraySize, EqualKey, MapInit>> {
837 using param_type = base::small_map<NormalMap, kArraySize, EqualKey, MapInit>;
840 static void Write(base::Pickle* m, const param_type& p) {
841 WriteParam(m, base::checked_cast<int>(p.size()));
848 static bool Read(const base::Pickle* m,
849 base::PickleIterator* iter,
870 struct ParamTraits<base::flat_map<Key, Mapped, Compare>> {
871 using param_type = base::flat_map<Key, Mapped, Compare>;
872 static void Write(base::Pickle* m, const param_type& p) {
873 DCHECK(base::IsValueInRangeForNumericType<int>(p.size()));
874 WriteParam(m, base::checked_cast<int>(p.size()));
880 static bool Read(const base::Pickle* m,
881 base::PickleIterator* iter,
899 *r = param_type(std::move(vect), base::KEEP_FIRST_OF_DUPES);
910 static void Write(base::Pickle* m, const param_type& p) {
916 static bool Read(const base::Pickle* m,
917 base::PickleIterator* iter,
944 struct ParamTraits<base::Optional<P>> {
945 typedef base::Optional<P> param_type;
946 static void Write(base::Pickle* m, const param_type& p) {
952 static bool Read(const base::Pickle* m,
953 base::PickleIterator* iter,
982 static void Write(base::Pickle* m, const param_type& p);
983 static bool Read(const base::Pickle* m,
984 base::PickleIterator* iter,
992 static void Write(base::Pickle* m, const param_type& p);
993 static bool Read(const base::Pickle* m,
994 base::PickleIterator* iter,
1001 static void Write(base::Pickle* m, const Message& p);
1002 static bool Read(const base::Pickle* m,
1003 base::PickleIterator* iter,
1014 static void Write(base::Pickle* m, const param_type& p);
1015 static bool Read(const base::Pickle* m,
1016 base::PickleIterator* iter,
1024 static void Write(base::Pickle* m, const param_type& p);
1025 static bool Read(const base::Pickle* m,
1026 base::PickleIterator* iter,