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

Side by Side Diff: sandbox/win/src/handle_table.cc

Issue 119713003: Add base:: to string16s in sandbox/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | « sandbox/win/src/handle_table.h ('k') | sandbox/win/src/process_policy_test.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "sandbox/win/src/handle_table.h" 5 #include "sandbox/win/src/handle_table.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdlib> 8 #include <cstdlib>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 break; 145 break;
146 } 146 }
147 } 147 }
148 148
149 const OBJECT_TYPE_INFORMATION* HandleTable::HandleEntry::TypeInfo() { 149 const OBJECT_TYPE_INFORMATION* HandleTable::HandleEntry::TypeInfo() {
150 UpdateInfo(UPDATE_INFO_ONLY); 150 UpdateInfo(UPDATE_INFO_ONLY);
151 return type_info_buffer_.empty() ? NULL : type_info_internal(); 151 return type_info_buffer_.empty() ? NULL : type_info_internal();
152 } 152 }
153 153
154 const string16& HandleTable::HandleEntry::Name() { 154 const base::string16& HandleTable::HandleEntry::Name() {
155 UpdateInfo(UPDATE_INFO_AND_NAME); 155 UpdateInfo(UPDATE_INFO_AND_NAME);
156 return handle_name_; 156 return handle_name_;
157 } 157 }
158 158
159 const string16& HandleTable::HandleEntry::Type() { 159 const base::string16& HandleTable::HandleEntry::Type() {
160 UpdateInfo(UPDATE_INFO_AND_TYPE_NAME); 160 UpdateInfo(UPDATE_INFO_AND_TYPE_NAME);
161 return type_name_; 161 return type_name_;
162 } 162 }
163 163
164 bool HandleTable::HandleEntry::IsType(const string16& type_string) { 164 bool HandleTable::HandleEntry::IsType(const base::string16& type_string) {
165 UpdateInfo(UPDATE_INFO_ONLY); 165 UpdateInfo(UPDATE_INFO_ONLY);
166 if (type_info_buffer_.empty()) 166 if (type_info_buffer_.empty())
167 return false; 167 return false;
168 return type_string.compare(0, 168 return type_string.compare(0,
169 type_info_internal()->Name.Length / sizeof(wchar_t), 169 type_info_internal()->Name.Length / sizeof(wchar_t),
170 type_info_internal()->Name.Buffer) == 0; 170 type_info_internal()->Name.Buffer) == 0;
171 } 171 }
172 172
173 HandleTable::Iterator::Iterator(const HandleTable& table, 173 HandleTable::Iterator::Iterator(const HandleTable& table,
174 const SYSTEM_HANDLE_INFORMATION* start, 174 const SYSTEM_HANDLE_INFORMATION* start,
175 const SYSTEM_HANDLE_INFORMATION* end) 175 const SYSTEM_HANDLE_INFORMATION* end)
176 : table_(table), current_(start), end_(end) { 176 : table_(table), current_(start), end_(end) {
177 } 177 }
178 178
179 HandleTable::Iterator::Iterator(const Iterator& it) 179 HandleTable::Iterator::Iterator(const Iterator& it)
180 : table_(it.table_), current_(it.current_.handle_entry_), end_(it.end_) { 180 : table_(it.table_), current_(it.current_.handle_entry_), end_(it.end_) {
181 } 181 }
182 182
183 } // namespace sandbox 183 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/handle_table.h ('k') | sandbox/win/src/process_policy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698