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

Side by Side Diff: base/native_library.h

Issue 99523009: Move DumpProcessWithoutCrash to base, so we can use it from net and content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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/debug/dump_without_crashing.cc ('k') | chrome/app/chrome_breakpad_client.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_NATIVE_LIBRARY_H_ 5 #ifndef BASE_NATIVE_LIBRARY_H_
6 #define BASE_NATIVE_LIBRARY_H_ 6 #define BASE_NATIVE_LIBRARY_H_
7 7
8 // This file defines a cross-platform "NativeLibrary" type which represents 8 // This file defines a cross-platform "NativeLibrary" type which represents
9 // a loadable module. 9 // a loadable module.
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/compiler_specific.h"
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 14
14 #if defined(OS_WIN) 15 #if defined(OS_WIN)
15 #include <windows.h> 16 #include <windows.h>
16 #elif defined(OS_MACOSX) 17 #elif defined(OS_MACOSX)
17 #import <CoreFoundation/CoreFoundation.h> 18 #import <CoreFoundation/CoreFoundation.h>
18 #endif // OS_* 19 #endif // OS_*
19 20
20 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
21 22
22 // Macro useful for writing cross-platform function pointers.
23 #if defined(OS_WIN) && !defined(CDECL)
24 #define CDECL __cdecl
25 #else
26 #define CDECL
27 #endif
28
29 namespace base { 23 namespace base {
30 24
31 class FilePath; 25 class FilePath;
32 26
33 #if defined(OS_WIN) 27 #if defined(OS_WIN)
34 typedef HMODULE NativeLibrary; 28 typedef HMODULE NativeLibrary;
35 #elif defined(OS_MACOSX) 29 #elif defined(OS_MACOSX)
36 enum NativeLibraryType { 30 enum NativeLibraryType {
37 BUNDLE, 31 BUNDLE,
38 DYNAMIC_LIB 32 DYNAMIC_LIB
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 76
83 // Returns the full platform specific name for a native library. 77 // Returns the full platform specific name for a native library.
84 // For example: 78 // For example:
85 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux, 79 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux,
86 // "mylib.dylib" on Mac. 80 // "mylib.dylib" on Mac.
87 BASE_EXPORT string16 GetNativeLibraryName(const string16& name); 81 BASE_EXPORT string16 GetNativeLibraryName(const string16& name);
88 82
89 } // namespace base 83 } // namespace base
90 84
91 #endif // BASE_NATIVE_LIBRARY_H_ 85 #endif // BASE_NATIVE_LIBRARY_H_
OLDNEW
« no previous file with comments | « base/debug/dump_without_crashing.cc ('k') | chrome/app/chrome_breakpad_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698