summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 01:01:06 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 01:01:06 +0000
commit34b9963c187a733bef76535521f3de688fffd34f (patch)
treea0569030e3a2ecc5b9c88d31a2469a380de85346 /base
parent1a2a571b157327f75acd56bd594ef0863481dc32 (diff)
downloadchromium_src-34b9963c187a733bef76535521f3de688fffd34f.zip
chromium_src-34b9963c187a733bef76535521f3de688fffd34f.tar.gz
chromium_src-34b9963c187a733bef76535521f3de688fffd34f.tar.bz2
Move base/thread.h to base/threading, fix up callers to use the new location.
TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/base.gyp4
-rw-r--r--base/base.gypi12
-rw-r--r--base/cancellation_flag_unittest.cc2
-rw-r--r--base/condition_variable_unittest.cc2
-rw-r--r--base/file_util_posix.cc2
-rw-r--r--base/file_util_win.cc2
-rw-r--r--base/file_version_info_win.cc2
-rw-r--r--base/lazy_instance.h2
-rw-r--r--base/message_loop_proxy_impl.cc2
-rw-r--r--base/message_loop_proxy_impl_unittest.cc2
-rw-r--r--base/message_loop_unittest.cc2
-rw-r--r--base/message_pump_glib_unittest.cc2
-rw-r--r--base/native_library_linux.cc2
-rw-r--r--base/native_library_win.cc2
-rw-r--r--base/nss_util.cc2
-rw-r--r--base/platform_file_win.cc2
-rw-r--r--base/process_util_linux.cc2
-rw-r--r--base/process_util_posix.cc2
-rw-r--r--base/ref_counted.cc4
-rw-r--r--base/ref_counted.h2
-rw-r--r--base/shared_memory_posix.cc2
-rw-r--r--base/singleton.h2
-rw-r--r--base/sys_info_chromeos.cc2
-rw-r--r--base/threading/platform_thread_posix.cc2
-rw-r--r--base/threading/platform_thread_win.cc2
-rw-r--r--base/threading/thread.cc (renamed from base/thread.cc)2
-rw-r--r--base/threading/thread.h (renamed from base/thread.h)0
-rw-r--r--base/threading/thread_collision_warner.cc (renamed from base/thread_collision_warner.cc)4
-rw-r--r--base/threading/thread_collision_warner.h (renamed from base/thread_collision_warner.h)8
-rw-r--r--base/threading/thread_collision_warner_unittest.cc (renamed from base/thread_collision_warner_unittest.cc)2
-rw-r--r--base/threading/thread_restrictions.cc (renamed from base/thread_restrictions.cc)2
-rw-r--r--base/threading/thread_restrictions.h (renamed from base/thread_restrictions.h)6
-rw-r--r--base/threading/thread_unittest.cc (renamed from base/thread_unittest.cc)2
-rw-r--r--base/tools_sanity_unittest.cc2
-rw-r--r--base/tracked_objects.cc2
-rw-r--r--base/weak_ptr_unittest.cc2
-rw-r--r--base/win/registry.cc2
-rw-r--r--base/win/win_util.cc2
38 files changed, 50 insertions, 50 deletions
diff --git a/base/base.gyp b/base/base.gyp
index cc98aa4..b1e61e2 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -142,13 +142,13 @@
'threading/platform_thread_unittest.cc',
'threading/simple_thread_unittest.cc',
'threading/thread_checker_unittest.cc',
+ 'threading/thread_collision_warner_unittest.cc',
'threading/thread_local_storage_unittest.cc',
'threading/thread_local_unittest.cc',
+ 'threading/thread_unittest.cc',
'threading/watchdog_unittest.cc',
'threading/worker_pool_posix_unittest.cc',
'threading/worker_pool_unittest.cc',
- 'thread_collision_warner_unittest.cc',
- 'thread_unittest.cc',
'time_unittest.cc',
'time_win_unittest.cc',
'timer_unittest.cc',
diff --git a/base/base.gypi b/base/base.gypi
index d07cd43..451803a 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -245,26 +245,26 @@
'threading/platform_thread_win.cc',
'threading/simple_thread.cc',
'threading/simple_thread.h',
+ 'threading/thread.cc',
+ 'threading/thread.h',
'threading/thread_checker.cc',
'threading/thread_checker.h',
+ 'threading/thread_collision_warner.cc',
+ 'threading/thread_collision_warner.h',
'threading/thread_local.h',
'threading/thread_local_posix.cc',
'threading/thread_local_storage.h',
'threading/thread_local_storage_posix.cc',
'threading/thread_local_storage_win.cc',
'threading/thread_local_win.cc',
+ 'threading/thread_restrictions.h',
+ 'threading/thread_restrictions.cc',
'threading/watchdog.cc',
'threading/watchdog.h',
'threading/worker_pool.h',
'threading/worker_pool_posix.cc',
'threading/worker_pool_posix.h',
'threading/worker_pool_win.cc',
- 'thread.cc',
- 'thread.h',
- 'thread_collision_warner.cc',
- 'thread_collision_warner.h',
- 'thread_restrictions.h',
- 'thread_restrictions.cc',
'time.cc',
'time.h',
'time_win.cc',
diff --git a/base/cancellation_flag_unittest.cc b/base/cancellation_flag_unittest.cc
index eb28b53..9c9ffd7 100644
--- a/base/cancellation_flag_unittest.cc
+++ b/base/cancellation_flag_unittest.cc
@@ -10,7 +10,7 @@
#include "base/message_loop.h"
#include "base/spin_wait.h"
#include "base/time.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
diff --git a/base/condition_variable_unittest.cc b/base/condition_variable_unittest.cc
index ab83fbf..18c9f2d19 100644
--- a/base/condition_variable_unittest.cc
+++ b/base/condition_variable_unittest.cc
@@ -14,7 +14,7 @@
#include "base/scoped_ptr.h"
#include "base/spin_wait.h"
#include "base/threading/platform_thread.h"
-#include "base/thread_collision_warner.h"
+#include "base/threading/thread_collision_warner.h"
#include "base/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 92527c8..cbfcfb0 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -38,7 +38,7 @@
#include "base/singleton.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index c302d77..9ab96c0 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -19,7 +19,7 @@
#include "base/win/scoped_handle.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "base/win/scoped_comptr.h"
diff --git a/base/file_version_info_win.cc b/base/file_version_info_win.cc
index e2bc84b..953caa9 100644
--- a/base/file_version_info_win.cc
+++ b/base/file_version_info_win.cc
@@ -10,7 +10,7 @@
#include "base/file_version_info.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
// This has to be last.
#include <strsafe.h>
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index bdf5ce3..f4cfda0 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -41,7 +41,7 @@
#include "base/atomicops.h"
#include "base/basictypes.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
namespace base {
diff --git a/base/message_loop_proxy_impl.cc b/base/message_loop_proxy_impl.cc
index c0619aa..3b01fd6 100644
--- a/base/message_loop_proxy_impl.cc
+++ b/base/message_loop_proxy_impl.cc
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "base/message_loop_proxy_impl.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
namespace base {
diff --git a/base/message_loop_proxy_impl_unittest.cc b/base/message_loop_proxy_impl_unittest.cc
index 8d8ef4e..61c7850 100644
--- a/base/message_loop_proxy_impl_unittest.cc
+++ b/base/message_loop_proxy_impl_unittest.cc
@@ -5,7 +5,7 @@
#include "base/message_loop.h"
#include "base/message_loop_proxy_impl.h"
#include "base/scoped_ptr.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
diff --git a/base/message_loop_unittest.cc b/base/message_loop_unittest.cc
index 2217737..e926c57 100644
--- a/base/message_loop_unittest.cc
+++ b/base/message_loop_unittest.cc
@@ -10,7 +10,7 @@
#include "base/ref_counted.h"
#include "base/task.h"
#include "base/threading/platform_thread.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_WIN)
diff --git a/base/message_pump_glib_unittest.cc b/base/message_pump_glib_unittest.cc
index 7316070..9c9f288 100644
--- a/base/message_pump_glib_unittest.cc
+++ b/base/message_pump_glib_unittest.cc
@@ -12,7 +12,7 @@
#include "base/message_loop.h"
#include "base/ref_counted.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
diff --git a/base/native_library_linux.cc b/base/native_library_linux.cc
index d5ab128..e282bce 100644
--- a/base/native_library_linux.cc
+++ b/base/native_library_linux.cc
@@ -8,7 +8,7 @@
#include "base/file_path.h"
#include "base/logging.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
namespace base {
diff --git a/base/native_library_win.cc b/base/native_library_win.cc
index b8a806b..b77fbe1 100644
--- a/base/native_library_win.cc
+++ b/base/native_library_win.cc
@@ -7,7 +7,7 @@
#include <windows.h>
#include "base/file_util.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
namespace base {
diff --git a/base/nss_util.cc b/base/nss_util.cc
index 36394da..b411422 100644
--- a/base/nss_util.cc
+++ b/base/nss_util.cc
@@ -22,7 +22,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/stringprintf.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
// USE_NSS means we use NSS for everything crypto-related. If USE_NSS is not
// defined, such as on Mac and Windows, we use NSS for SSL only -- we don't
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc
index 1398397..f9eb234 100644
--- a/base/platform_file_win.cc
+++ b/base/platform_file_win.cc
@@ -6,7 +6,7 @@
#include "base/file_path.h"
#include "base/logging.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
namespace base {
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index 670de6a..dcaeeb4 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -22,7 +22,7 @@
#include "base/string_tokenizer.h"
#include "base/string_util.h"
#include "base/sys_info.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
namespace {
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 0116d8f..c5cc8c3 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -26,7 +26,7 @@
#include "base/scoped_ptr.h"
#include "base/stringprintf.h"
#include "base/threading/platform_thread.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/time.h"
#include "base/waitable_event.h"
diff --git a/base/ref_counted.cc b/base/ref_counted.cc
index f1dffa4..2f795ea 100644
--- a/base/ref_counted.cc
+++ b/base/ref_counted.cc
@@ -1,11 +1,11 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/ref_counted.h"
#include "base/logging.h"
-#include "base/thread_collision_warner.h"
+#include "base/threading/thread_collision_warner.h"
namespace base {
diff --git a/base/ref_counted.h b/base/ref_counted.h
index 9c84efa..4c3aeb8 100644
--- a/base/ref_counted.h
+++ b/base/ref_counted.h
@@ -7,7 +7,7 @@
#pragma once
#include "base/atomic_ref_count.h"
-#include "base/thread_collision_warner.h"
+#include "base/threading/thread_collision_warner.h"
namespace base {
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc
index f86b46c..a44581e 100644
--- a/base/shared_memory_posix.cc
+++ b/base/shared_memory_posix.cc
@@ -14,7 +14,7 @@
#include "base/logging.h"
#include "base/threading/platform_thread.h"
#include "base/safe_strerror_posix.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
namespace base {
diff --git a/base/singleton.h b/base/singleton.h
index a644156..5bd5c35 100644
--- a/base/singleton.h
+++ b/base/singleton.h
@@ -10,7 +10,7 @@
#include "base/atomicops.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
#include "base/threading/platform_thread.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
// Default traits for Singleton<Type>. Calls operator new and operator delete on
// the object. Registers automatic deletion at process exit.
diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc
index e554d73..5834389 100644
--- a/base/sys_info_chromeos.cc
+++ b/base/sys_info_chromeos.cc
@@ -9,7 +9,7 @@
#include "base/file_util.h"
#include "base/string_number_conversions.h"
#include "base/string_tokenizer.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
namespace base {
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 0ef4990..8452909 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -10,7 +10,7 @@
#include "base/logging.h"
#include "base/safe_strerror_posix.h"
#include "base/scoped_ptr.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#if defined(OS_MACOSX)
#include <mach/mach.h>
diff --git a/base/threading/platform_thread_win.cc b/base/threading/platform_thread_win.cc
index 10f3011..734f404 100644
--- a/base/threading/platform_thread_win.cc
+++ b/base/threading/platform_thread_win.cc
@@ -5,7 +5,7 @@
#include "base/threading/platform_thread.h"
#include "base/logging.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/win/windows_version.h"
namespace base {
diff --git a/base/thread.cc b/base/threading/thread.cc
index 3b170ef..5772d32 100644
--- a/base/thread.cc
+++ b/base/threading/thread.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "base/lazy_instance.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
diff --git a/base/thread.h b/base/threading/thread.h
index 17bd33b..17bd33b 100644
--- a/base/thread.h
+++ b/base/threading/thread.h
diff --git a/base/thread_collision_warner.cc b/base/threading/thread_collision_warner.cc
index be68bc5f..547e11c 100644
--- a/base/thread_collision_warner.cc
+++ b/base/threading/thread_collision_warner.cc
@@ -1,8 +1,8 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/thread_collision_warner.h"
+#include "base/threading/thread_collision_warner.h"
#include "base/logging.h"
#include "base/threading/platform_thread.h"
diff --git a/base/thread_collision_warner.h b/base/threading/thread_collision_warner.h
index 1e14d1a..17ed5a4 100644
--- a/base/thread_collision_warner.h
+++ b/base/threading/thread_collision_warner.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_THREAD_COLLISION_WARNER_H_
-#define BASE_THREAD_COLLISION_WARNER_H_
+#ifndef BASE_THREADING_THREAD_COLLISION_WARNER_H_
+#define BASE_THREADING_THREAD_COLLISION_WARNER_H_
#pragma once
#include <memory>
@@ -240,4 +240,4 @@ class ThreadCollisionWarner {
} // namespace base
-#endif // BASE_THREAD_COLLISION_WARNER_H_
+#endif // BASE_THREADING_THREAD_COLLISION_WARNER_H_
diff --git a/base/thread_collision_warner_unittest.cc b/base/threading/thread_collision_warner_unittest.cc
index d7e1732..68987c3 100644
--- a/base/thread_collision_warner_unittest.cc
+++ b/base/threading/thread_collision_warner_unittest.cc
@@ -7,7 +7,7 @@
#include "base/scoped_ptr.h"
#include "base/threading/platform_thread.h"
#include "base/threading/simple_thread.h"
-#include "base/thread_collision_warner.h"
+#include "base/threading/thread_collision_warner.h"
#include "testing/gtest/include/gtest/gtest.h"
// '' : local class member function does not have a body
diff --git a/base/thread_restrictions.cc b/base/threading/thread_restrictions.cc
index 6a7c60a..a0c24b0 100644
--- a/base/thread_restrictions.cc
+++ b/base/threading/thread_restrictions.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
// This entire file is compiled out in Release mode.
#ifndef NDEBUG
diff --git a/base/thread_restrictions.h b/base/threading/thread_restrictions.h
index 51e5a15..de8174f 100644
--- a/base/thread_restrictions.h
+++ b/base/threading/thread_restrictions.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_THREAD_RESTRICTIONS_H_
-#define BASE_THREAD_RESTRICTIONS_H_
+#ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_
+#define BASE_THREADING_THREAD_RESTRICTIONS_H_
#include "base/basictypes.h"
@@ -97,4 +97,4 @@ class ThreadRestrictions {
} // namespace base
-#endif // BASE_THREAD_RESTRICTIONS_H_
+#endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
diff --git a/base/thread_unittest.cc b/base/threading/thread_unittest.cc
index 6eff102..3748fc3 100644
--- a/base/thread_unittest.cc
+++ b/base/threading/thread_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include <vector>
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index edb842d..779c236 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -4,7 +4,7 @@
#include "base/message_loop.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index 1d04b12..3646000 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -10,7 +10,7 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
using base::TimeDelta;
diff --git a/base/weak_ptr_unittest.cc b/base/weak_ptr_unittest.cc
index b808401..bcaca9e 100644
--- a/base/weak_ptr_unittest.cc
+++ b/base/weak_ptr_unittest.cc
@@ -4,7 +4,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "base/message_loop.h"
-#include "base/thread.h"
+#include "base/threading/thread.h"
#include "base/scoped_ptr.h"
#include "base/weak_ptr.h"
diff --git a/base/win/registry.cc b/base/win/registry.cc
index f8e05a7..dbb8d7a 100644
--- a/base/win/registry.cc
+++ b/base/win/registry.cc
@@ -7,7 +7,7 @@
#include <shlwapi.h>
#include "base/logging.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#pragma comment(lib, "shlwapi.lib") // for SHDeleteKey
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index cce3d9c..afd16f4 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -17,7 +17,7 @@
#include "base/scoped_ptr.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
-#include "base/thread_restrictions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/win/windows_version.h"
namespace base {