| OLD | NEW |
| 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/native_library.h" | 5 #include "base/native_library.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #import <Carbon/Carbon.h> | |
| 9 | 8 |
| 10 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 12 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 14 #include "base/thread_restrictions.h" | 13 #include "base/thread_restrictions.h" |
| 15 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 16 | 15 |
| 17 namespace base { | 16 namespace base { |
| 18 | 17 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 70 } |
| 72 return dlsym(library->dylib, name); | 71 return dlsym(library->dylib, name); |
| 73 } | 72 } |
| 74 | 73 |
| 75 // static | 74 // static |
| 76 string16 GetNativeLibraryName(const string16& name) { | 75 string16 GetNativeLibraryName(const string16& name) { |
| 77 return name + ASCIIToUTF16(".dylib"); | 76 return name + ASCIIToUTF16(".dylib"); |
| 78 } | 77 } |
| 79 | 78 |
| 80 } // namespace base | 79 } // namespace base |
| OLD | NEW |