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

Side by Side Diff: dbus/property.h

Issue 1337113005: Revert of Export various dbus::Property template specializations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@widget-fun
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DBUS_PROPERTY_H_ 5 #ifndef DBUS_PROPERTY_H_
6 #define DBUS_PROPERTY_H_ 6 #define DBUS_PROPERTY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 void ReplaceSetValueForTesting(const T& value) { set_value_ = value; } 419 void ReplaceSetValueForTesting(const T& value) { set_value_ = value; }
420 420
421 private: 421 private:
422 // Current cached value of the property. 422 // Current cached value of the property.
423 T value_; 423 T value_;
424 424
425 // Replacement value of the property. 425 // Replacement value of the property.
426 T set_value_; 426 T set_value_;
427 }; 427 };
428 428
429 template <> Property<uint8>::Property();
430 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader);
431 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer);
432 extern template class Property<uint8>;
433
434 template <> Property<bool>::Property();
435 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader);
436 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer);
437 extern template class Property<bool>;
438
439 template <> Property<int16>::Property();
440 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader);
441 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer);
442 extern template class Property<int16>;
443
444 template <> Property<uint16>::Property();
445 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader);
446 template <> void Property<uint16>::AppendSetValueToWriter(
447 MessageWriter* writer);
448 extern template class Property<uint16>;
449
450 template <> Property<int32>::Property();
451 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader);
452 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer);
453 extern template class Property<int32>;
454
455 template <> Property<uint32>::Property();
456 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader);
457 template <> void Property<uint32>::AppendSetValueToWriter(
458 MessageWriter* writer);
459 extern template class Property<uint32>;
460
461 template <> Property<int64>::Property();
462 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader);
463 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer);
464 extern template class Property<int64>;
465
466 template <> Property<uint64>::Property();
467 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader);
468 template <> void Property<uint64>::AppendSetValueToWriter(
469 MessageWriter* writer);
470 extern template class Property<uint64>;
471
472 template <> Property<double>::Property();
473 template <> bool Property<double>::PopValueFromReader(MessageReader* reader);
474 template <> void Property<double>::AppendSetValueToWriter(
475 MessageWriter* writer);
476 extern template class Property<double>;
477
478 template <> bool Property<std::string>::PopValueFromReader(
479 MessageReader* reader);
480 template <> void Property<std::string>::AppendSetValueToWriter(
481 MessageWriter* writer);
482 extern template class Property<std::string>;
483
484 template <> bool Property<ObjectPath>::PopValueFromReader(
485 MessageReader* reader);
486 template <> void Property<ObjectPath>::AppendSetValueToWriter(
487 MessageWriter* writer);
488 extern template class Property<ObjectPath>;
489
490 template <> bool Property<std::vector<std::string> >::PopValueFromReader(
491 MessageReader* reader);
492 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter(
493 MessageWriter* writer);
494 extern template class Property<std::vector<std::string> >;
495
496 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader(
497 MessageReader* reader);
498 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter(
499 MessageWriter* writer);
500 extern template class Property<std::vector<ObjectPath> >;
501
502 template <> bool Property<std::vector<uint8> >::PopValueFromReader(
503 MessageReader* reader);
504 template <> void Property<std::vector<uint8> >::AppendSetValueToWriter(
505 MessageWriter* writer);
506 extern template class Property<std::vector<uint8> >;
507
429 template <> 508 template <>
430 CHROME_DBUS_EXPORT Property<uint8>::Property(); 509 bool Property<std::map<std::string, std::string>>::PopValueFromReader(
431 template <>
432 CHROME_DBUS_EXPORT bool Property<uint8>::PopValueFromReader(
433 MessageReader* reader); 510 MessageReader* reader);
434 template <> 511 template <>
435 CHROME_DBUS_EXPORT void Property<uint8>::AppendSetValueToWriter( 512 void Property<std::map<std::string, std::string>>::AppendSetValueToWriter(
436 MessageWriter* writer); 513 MessageWriter* writer);
437 extern template class CHROME_DBUS_EXPORT Property<uint8>; 514 extern template class Property<std::map<std::string, std::string>>;
438 515
439 template <> 516 template <>
440 CHROME_DBUS_EXPORT Property<bool>::Property(); 517 bool Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
441 template <>
442 CHROME_DBUS_EXPORT bool Property<bool>::PopValueFromReader(
443 MessageReader* reader);
444 template <>
445 CHROME_DBUS_EXPORT void Property<bool>::AppendSetValueToWriter(
446 MessageWriter* writer);
447 extern template class CHROME_DBUS_EXPORT Property<bool>;
448
449 template <>
450 CHROME_DBUS_EXPORT Property<int16>::Property();
451 template <>
452 CHROME_DBUS_EXPORT bool Property<int16>::PopValueFromReader(
453 MessageReader* reader);
454 template <>
455 CHROME_DBUS_EXPORT void Property<int16>::AppendSetValueToWriter(
456 MessageWriter* writer);
457 extern template class CHROME_DBUS_EXPORT Property<int16>;
458
459 template <>
460 CHROME_DBUS_EXPORT Property<uint16>::Property();
461 template <>
462 CHROME_DBUS_EXPORT bool Property<uint16>::PopValueFromReader(
463 MessageReader* reader);
464 template <>
465 CHROME_DBUS_EXPORT void Property<uint16>::AppendSetValueToWriter(
466 MessageWriter* writer);
467 extern template class CHROME_DBUS_EXPORT Property<uint16>;
468
469 template <>
470 CHROME_DBUS_EXPORT Property<int32>::Property();
471 template <>
472 CHROME_DBUS_EXPORT bool Property<int32>::PopValueFromReader(
473 MessageReader* reader);
474 template <>
475 CHROME_DBUS_EXPORT void Property<int32>::AppendSetValueToWriter(
476 MessageWriter* writer);
477 extern template class CHROME_DBUS_EXPORT Property<int32>;
478
479 template <>
480 CHROME_DBUS_EXPORT Property<uint32>::Property();
481 template <>
482 CHROME_DBUS_EXPORT bool Property<uint32>::PopValueFromReader(
483 MessageReader* reader);
484 template <>
485 CHROME_DBUS_EXPORT void Property<uint32>::AppendSetValueToWriter(
486 MessageWriter* writer);
487 extern template class CHROME_DBUS_EXPORT Property<uint32>;
488
489 template <>
490 CHROME_DBUS_EXPORT Property<int64>::Property();
491 template <>
492 CHROME_DBUS_EXPORT bool Property<int64>::PopValueFromReader(
493 MessageReader* reader);
494 template <>
495 CHROME_DBUS_EXPORT void Property<int64>::AppendSetValueToWriter(
496 MessageWriter* writer);
497 extern template class CHROME_DBUS_EXPORT Property<int64>;
498
499 template <>
500 CHROME_DBUS_EXPORT Property<uint64>::Property();
501 template <>
502 CHROME_DBUS_EXPORT bool Property<uint64>::PopValueFromReader(
503 MessageReader* reader);
504 template <>
505 CHROME_DBUS_EXPORT void Property<uint64>::AppendSetValueToWriter(
506 MessageWriter* writer);
507 extern template class CHROME_DBUS_EXPORT Property<uint64>;
508
509 template <>
510 CHROME_DBUS_EXPORT Property<double>::Property();
511 template <>
512 CHROME_DBUS_EXPORT bool Property<double>::PopValueFromReader(
513 MessageReader* reader);
514 template <>
515 CHROME_DBUS_EXPORT void Property<double>::AppendSetValueToWriter(
516 MessageWriter* writer);
517 extern template class CHROME_DBUS_EXPORT Property<double>;
518
519 template <>
520 CHROME_DBUS_EXPORT bool Property<std::string>::PopValueFromReader(
521 MessageReader* reader);
522 template <>
523 CHROME_DBUS_EXPORT void Property<std::string>::AppendSetValueToWriter(
524 MessageWriter* writer);
525 extern template class CHROME_DBUS_EXPORT Property<std::string>;
526
527 template <>
528 CHROME_DBUS_EXPORT bool Property<ObjectPath>::PopValueFromReader(
529 MessageReader* reader);
530 template <>
531 CHROME_DBUS_EXPORT void Property<ObjectPath>::AppendSetValueToWriter(
532 MessageWriter* writer);
533 extern template class CHROME_DBUS_EXPORT Property<ObjectPath>;
534
535 template <>
536 CHROME_DBUS_EXPORT bool Property<std::vector<std::string>>::PopValueFromReader(
537 MessageReader* reader);
538 template <>
539 CHROME_DBUS_EXPORT void Property<
540 std::vector<std::string>>::AppendSetValueToWriter(MessageWriter* writer);
541 extern template class CHROME_DBUS_EXPORT Property<std::vector<std::string>>;
542
543 template <>
544 CHROME_DBUS_EXPORT bool Property<std::vector<ObjectPath>>::PopValueFromReader(
545 MessageReader* reader);
546 template <>
547 CHROME_DBUS_EXPORT void Property<
548 std::vector<ObjectPath>>::AppendSetValueToWriter(MessageWriter* writer);
549 extern template class CHROME_DBUS_EXPORT Property<std::vector<ObjectPath>>;
550
551 template <>
552 CHROME_DBUS_EXPORT bool Property<std::vector<uint8>>::PopValueFromReader(
553 MessageReader* reader);
554 template <>
555 CHROME_DBUS_EXPORT void Property<std::vector<uint8>>::AppendSetValueToWriter(
556 MessageWriter* writer);
557 extern template class CHROME_DBUS_EXPORT Property<std::vector<uint8>>;
558
559 template <>
560 CHROME_DBUS_EXPORT bool
561 Property<std::map<std::string, std::string>>::PopValueFromReader(
562 MessageReader* reader);
563 template <>
564 CHROME_DBUS_EXPORT void
565 Property<std::map<std::string, std::string>>::AppendSetValueToWriter(
566 MessageWriter* writer);
567 extern template class CHROME_DBUS_EXPORT
568 Property<std::map<std::string, std::string>>;
569
570 template <>
571 CHROME_DBUS_EXPORT bool
572 Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
573 PopValueFromReader(MessageReader* reader); 518 PopValueFromReader(MessageReader* reader);
574 template <> 519 template <>
575 CHROME_DBUS_EXPORT void 520 void Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
576 Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>::
577 AppendSetValueToWriter(MessageWriter* writer); 521 AppendSetValueToWriter(MessageWriter* writer);
578 extern template class CHROME_DBUS_EXPORT 522 extern template class Property<
579 Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>; 523 std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>;
580 524
581 } // namespace dbus 525 } // namespace dbus
582 526
583 #endif // DBUS_PROPERTY_H_ 527 #endif // DBUS_PROPERTY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698