OLD | NEW |
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 // TODO(dcheng): For efficiency reasons, consider passing custom data around | 5 // TODO(dcheng): For efficiency reasons, consider passing custom data around |
6 // as a vector instead. It allows us to append a | 6 // as a vector instead. It allows us to append a |
7 // std::pair<string16, string16> and swap the deserialized values in. | 7 // std::pair<base::string16, base::string16> and swap the deserialized values. |
8 | 8 |
9 #include "ui/base/clipboard/custom_data_helper.h" | 9 #include "ui/base/clipboard/custom_data_helper.h" |
10 | 10 |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 namespace { | 17 namespace { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 for (std::map<base::string16, base::string16>::const_iterator it = | 120 for (std::map<base::string16, base::string16>::const_iterator it = |
121 data.begin(); | 121 data.begin(); |
122 it != data.end(); | 122 it != data.end(); |
123 ++it) { | 123 ++it) { |
124 pickle->WriteString16(it->first); | 124 pickle->WriteString16(it->first); |
125 pickle->WriteString16(it->second); | 125 pickle->WriteString16(it->second); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 } // namespace ui | 129 } // namespace ui |
OLD | NEW |