OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ppapi/shared_impl/dictionary_var.h" | 5 #include "ppapi/shared_impl/dictionary_var.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "ppapi/shared_impl/array_var.h" | 9 #include "ppapi/shared_impl/array_var.h" |
10 #include "ppapi/shared_impl/ppapi_globals.h" | 10 #include "ppapi/shared_impl/ppapi_globals.h" |
11 #include "ppapi/shared_impl/var_tracker.h" | 11 #include "ppapi/shared_impl/var_tracker.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 DictionaryVar::DictionaryVar() { | 15 DictionaryVar::DictionaryVar() { |
16 } | 16 } |
17 | 17 |
18 DictionaryVar::~DictionaryVar() { | 18 DictionaryVar::~DictionaryVar() { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 key_value_map_[utf8_key] = value; | 102 key_value_map_[utf8_key] = value; |
103 return true; | 103 return true; |
104 } | 104 } |
105 | 105 |
106 void DictionaryVar::DeleteWithStringKey(const std::string& utf8_key) { | 106 void DictionaryVar::DeleteWithStringKey(const std::string& utf8_key) { |
107 key_value_map_.erase(utf8_key); | 107 key_value_map_.erase(utf8_key); |
108 } | 108 } |
109 | 109 |
110 } // namespace ppapi | 110 } // namespace ppapi |
OLD | NEW |