Skip to content

Commit

Permalink
Move base/thread.h to base/threading, fix up callers to use the new l…
Browse files Browse the repository at this point in the history
…ocation.

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
  • Loading branch information
brettw@chromium.org committed Jan 1, 2011
1 parent 1a2a571 commit 34b9963
Show file tree
Hide file tree
Showing 273 changed files with 311 additions and 308 deletions.
2 changes: 1 addition & 1 deletion app/x11_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "base/logging.h"
#include "base/stringprintf.h"
#include "base/string_number_conversions.h"
#include "base/thread.h"
#include "base/threading/thread.h"
#include "app/x11_util_internal.h"
#include "gfx/rect.h"
#include "gfx/size.h"
Expand Down
4 changes: 2 additions & 2 deletions base/base.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 6 additions & 6 deletions base/base.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion base/cancellation_flag_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion base/condition_variable_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion base/file_util_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion base/file_util_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion base/file_version_info_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion base/lazy_instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/message_loop_proxy_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/message_loop_proxy_impl_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion base/message_loop_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion base/message_pump_glib_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/native_library_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/native_library_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/nss_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion base/platform_file_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/process_util_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/process_util_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions base/ref_counted.cc
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/ref_counted.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/shared_memory_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/singleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion base/sys_info_chromeos.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion base/threading/platform_thread_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion base/threading/platform_thread_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/thread.cc → base/threading/thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -240,4 +240,4 @@ class ThreadCollisionWarner {

} // namespace base

#endif // BASE_THREAD_COLLISION_WARNER_H_
#endif // BASE_THREADING_THREAD_COLLISION_WARNER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -97,4 +97,4 @@ class ThreadRestrictions {

} // namespace base

#endif // BASE_THREAD_RESTRICTIONS_H_
#endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion base/tools_sanity_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion base/tracked_objects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion base/weak_ptr_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion base/win/registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion base/win/win_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading

0 comments on commit 34b9963

Please sign in to comment.