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

Side by Side Diff: dbus/property.cc

Issue 408143012: [DBus] Explicitly instantiate dbusProperty variant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop extra "extern" Created 6 years, 5 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
« dbus/property.h ('K') | « dbus/property.h ('k') | 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 #include "dbus/property.h" 5 #include "dbus/property.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 template <> 472 template <>
473 void Property<std::vector<uint8> >::AppendSetValueToWriter( 473 void Property<std::vector<uint8> >::AppendSetValueToWriter(
474 MessageWriter* writer) { 474 MessageWriter* writer) {
475 MessageWriter variant_writer(NULL); 475 MessageWriter variant_writer(NULL);
476 writer->OpenVariant("ay", &variant_writer); 476 writer->OpenVariant("ay", &variant_writer);
477 variant_writer.AppendArrayOfBytes(set_value_.data(), set_value_.size()); 477 variant_writer.AppendArrayOfBytes(set_value_.data(), set_value_.size());
478 writer->CloseContainer(&variant_writer); 478 writer->CloseContainer(&variant_writer);
479 } 479 }
480 480
481 template class Property<uint8>;
482 template class Property<bool>;
483 template class Property<int16>;
484 template class Property<uint16>;
485 template class Property<int32>;
486 template class Property<uint32>;
487 template class Property<int64>;
488 template class Property<uint64>;
489 template class Property<double>;
490 template class Property<std::string>;
491 template class Property<ObjectPath>;
492 template class Property<std::vector<std::string> >;
493 template class Property<std::vector<ObjectPath> >;
494 template class Property<std::vector<uint8> >;
495
481 } // namespace dbus 496 } // namespace dbus
OLDNEW
« dbus/property.h ('K') | « dbus/property.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698