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

Side by Side Diff: base/metrics/stats_table.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « base/message_pump_glib_unittest.cc ('k') | base/metrics/stats_table_unittest.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/metrics/stats_table.h" 5 #include "base/metrics/stats_table.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/platform_thread.h"
9 #include "base/process_util.h" 8 #include "base/process_util.h"
10 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
11 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
12 #include "base/string_piece.h" 11 #include "base/string_piece.h"
13 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/threading/platform_thread.h"
14 #include "base/threading/thread_local_storage.h" 14 #include "base/threading/thread_local_storage.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 16
17 #if defined(OS_POSIX) 17 #if defined(OS_POSIX)
18 #include "errno.h" 18 #include "errno.h"
19 #endif 19 #endif
20 20
21 namespace base { 21 namespace base {
22 22
23 // The StatsTable uses a shared memory segment that is laid out as follows 23 // The StatsTable uses a shared memory segment that is laid out as follows
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 // Find the counter id for the counter. 545 // Find the counter id for the counter.
546 std::string str_name(name); 546 std::string str_name(name);
547 int counter = table->FindCounter(str_name); 547 int counter = table->FindCounter(str_name);
548 548
549 // Now we can find the location in the table. 549 // Now we can find the location in the table.
550 return table->GetLocation(counter, slot); 550 return table->GetLocation(counter, slot);
551 } 551 }
552 552
553 } // namespace base 553 } // namespace base
OLDNEW
« no previous file with comments | « base/message_pump_glib_unittest.cc ('k') | base/metrics/stats_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698