diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 01:54:15 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 01:54:15 +0000 |
commit | 3b63f8f451afcf414a59c529f627c620e4d449d9 (patch) | |
tree | 2dcbab1c060b29a260c29bb19b67bf97a8293ca3 /base/scoped_native_library.cc | |
parent | 9174a108509c2aafe513da68e6e63fbc7df38c85 (diff) | |
download | chromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.zip chromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.tar.gz chromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.tar.bz2 |
Move some files from base to base/memory.
raw_scoped_refptr_mismatch_checker.h
ref_counted.cc
ref_counted.h
ref_counted_memory.cc
ref_counted_memory.h
ref_counted_unittest.cc
scoped_callback_factory.h
scoped_comptr_win.h
scoped_handle.h
scoped_native_library.cc
scoped_native_library.h
scoped_native_library_unittest.cc
scoped_nsobject.h
scoped_open_process.h
scoped_ptr.h
scoped_ptr_unittest.cc
scoped_temp_dir.cc
scoped_temp_dir.h
scoped_temp_dir_unittest.cc
scoped_vector.h
singleton.h
singleton_objc.h
singleton_unittest.cc
linked_ptr.h
linked_ptr_unittest.cc
weak_ptr.cc
weak_ptr.h
weak_ptr_unittest.cc
BUG=None
TEST=Compile
Review URL: http://codereview.chromium.org/6714032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_native_library.cc')
-rw-r--r-- | base/scoped_native_library.cc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/base/scoped_native_library.cc b/base/scoped_native_library.cc deleted file mode 100644 index 9d34449..0000000 --- a/base/scoped_native_library.cc +++ /dev/null @@ -1,44 +0,0 @@ -// 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/scoped_native_library.h" - -namespace base { - -ScopedNativeLibrary::ScopedNativeLibrary() : library_(NULL) { -} - -ScopedNativeLibrary::ScopedNativeLibrary(NativeLibrary library) - : library_(library) { -} - -ScopedNativeLibrary::ScopedNativeLibrary(const FilePath& library_path) { - library_ = base::LoadNativeLibrary(library_path); -} - -ScopedNativeLibrary::~ScopedNativeLibrary() { - if (library_) - base::UnloadNativeLibrary(library_); -} - -void* ScopedNativeLibrary::GetFunctionPointer( - const char* function_name) const { - if (!library_) - return NULL; - return base::GetFunctionPointerFromNativeLibrary(library_, function_name); -} - -void ScopedNativeLibrary::Reset(NativeLibrary library) { - if (library_) - base::UnloadNativeLibrary(library_); - library_ = library; -} - -NativeLibrary ScopedNativeLibrary::Release() { - NativeLibrary result = library_; - library_ = NULL; - return result; -} - -} // namespace base |