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

Side by Side Diff: dbus/property.h

Issue 423233003: dbus: don't add attributes in extern template class specialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« 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 10
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // Current cached value of the property. 402 // Current cached value of the property.
403 T value_; 403 T value_;
404 404
405 // Replacement value of the property. 405 // Replacement value of the property.
406 T set_value_; 406 T set_value_;
407 }; 407 };
408 408
409 template <> Property<uint8>::Property(); 409 template <> Property<uint8>::Property();
410 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader); 410 template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader);
411 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer); 411 template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer);
412 extern template class CHROME_DBUS_EXPORT Property<uint8>; 412 extern template class Property<uint8>;
413 413
414 template <> Property<bool>::Property(); 414 template <> Property<bool>::Property();
415 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader); 415 template <> bool Property<bool>::PopValueFromReader(MessageReader* reader);
416 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer); 416 template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer);
417 extern template class CHROME_DBUS_EXPORT Property<bool>; 417 extern template class Property<bool>;
418 418
419 template <> Property<int16>::Property(); 419 template <> Property<int16>::Property();
420 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader); 420 template <> bool Property<int16>::PopValueFromReader(MessageReader* reader);
421 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer); 421 template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer);
422 extern template class CHROME_DBUS_EXPORT Property<int16>; 422 extern template class Property<int16>;
423 423
424 template <> Property<uint16>::Property(); 424 template <> Property<uint16>::Property();
425 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader); 425 template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader);
426 template <> void Property<uint16>::AppendSetValueToWriter( 426 template <> void Property<uint16>::AppendSetValueToWriter(
427 MessageWriter* writer); 427 MessageWriter* writer);
428 extern template class CHROME_DBUS_EXPORT Property<uint16>; 428 extern template class Property<uint16>;
429 429
430 template <> Property<int32>::Property(); 430 template <> Property<int32>::Property();
431 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader); 431 template <> bool Property<int32>::PopValueFromReader(MessageReader* reader);
432 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer); 432 template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer);
433 extern template class CHROME_DBUS_EXPORT Property<int32>; 433 extern template class Property<int32>;
434 434
435 template <> Property<uint32>::Property(); 435 template <> Property<uint32>::Property();
436 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader); 436 template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader);
437 template <> void Property<uint32>::AppendSetValueToWriter( 437 template <> void Property<uint32>::AppendSetValueToWriter(
438 MessageWriter* writer); 438 MessageWriter* writer);
439 extern template class CHROME_DBUS_EXPORT Property<uint32>; 439 extern template class Property<uint32>;
440 440
441 template <> Property<int64>::Property(); 441 template <> Property<int64>::Property();
442 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader); 442 template <> bool Property<int64>::PopValueFromReader(MessageReader* reader);
443 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer); 443 template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer);
444 extern template class CHROME_DBUS_EXPORT Property<int64>; 444 extern template class Property<int64>;
445 445
446 template <> Property<uint64>::Property(); 446 template <> Property<uint64>::Property();
447 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader); 447 template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader);
448 template <> void Property<uint64>::AppendSetValueToWriter( 448 template <> void Property<uint64>::AppendSetValueToWriter(
449 MessageWriter* writer); 449 MessageWriter* writer);
450 extern template class CHROME_DBUS_EXPORT Property<uint64>; 450 extern template class Property<uint64>;
451 451
452 template <> Property<double>::Property(); 452 template <> Property<double>::Property();
453 template <> bool Property<double>::PopValueFromReader(MessageReader* reader); 453 template <> bool Property<double>::PopValueFromReader(MessageReader* reader);
454 template <> void Property<double>::AppendSetValueToWriter( 454 template <> void Property<double>::AppendSetValueToWriter(
455 MessageWriter* writer); 455 MessageWriter* writer);
456 extern template class CHROME_DBUS_EXPORT Property<double>; 456 extern template class Property<double>;
457 457
458 template <> bool Property<std::string>::PopValueFromReader( 458 template <> bool Property<std::string>::PopValueFromReader(
459 MessageReader* reader); 459 MessageReader* reader);
460 template <> void Property<std::string>::AppendSetValueToWriter( 460 template <> void Property<std::string>::AppendSetValueToWriter(
461 MessageWriter* writer); 461 MessageWriter* writer);
462 extern template class CHROME_DBUS_EXPORT Property<std::string>; 462 extern template class Property<std::string>;
463 463
464 template <> bool Property<ObjectPath>::PopValueFromReader( 464 template <> bool Property<ObjectPath>::PopValueFromReader(
465 MessageReader* reader); 465 MessageReader* reader);
466 template <> void Property<ObjectPath>::AppendSetValueToWriter( 466 template <> void Property<ObjectPath>::AppendSetValueToWriter(
467 MessageWriter* writer); 467 MessageWriter* writer);
468 extern template class CHROME_DBUS_EXPORT Property<ObjectPath>; 468 extern template class Property<ObjectPath>;
469 469
470 template <> bool Property<std::vector<std::string> >::PopValueFromReader( 470 template <> bool Property<std::vector<std::string> >::PopValueFromReader(
471 MessageReader* reader); 471 MessageReader* reader);
472 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter( 472 template <> void Property<std::vector<std::string> >::AppendSetValueToWriter(
473 MessageWriter* writer); 473 MessageWriter* writer);
474 extern template class CHROME_DBUS_EXPORT Property<std::vector<std::string> >; 474 extern template class Property<std::vector<std::string> >;
475 475
476 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader( 476 template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader(
477 MessageReader* reader); 477 MessageReader* reader);
478 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter( 478 template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter(
479 MessageWriter* writer); 479 MessageWriter* writer);
480 extern template class CHROME_DBUS_EXPORT Property<std::vector<ObjectPath> >; 480 extern template class Property<std::vector<ObjectPath> >;
481 481
482 template <> bool Property<std::vector<uint8> >::PopValueFromReader( 482 template <> bool Property<std::vector<uint8> >::PopValueFromReader(
483 MessageReader* reader); 483 MessageReader* reader);
484 template <> void Property<std::vector<uint8> >::AppendSetValueToWriter( 484 template <> void Property<std::vector<uint8> >::AppendSetValueToWriter(
485 MessageWriter* writer); 485 MessageWriter* writer);
486 extern template class CHROME_DBUS_EXPORT Property<std::vector<uint8> >; 486 extern template class Property<std::vector<uint8> >;
487 487
488 } // namespace dbus 488 } // namespace dbus
489 489
490 #endif // DBUS_PROPERTY_H_ 490 #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