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

Unified Diff: base/scoped_native_library.h

Issue 1423583002: Stack sampling profiler: handle unloaded and unloading modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix gcc compile Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/profiler/win32_stack_frame_unwinder_unittest.cc ('k') | base/scoped_native_library_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_native_library.h
diff --git a/base/scoped_native_library.h b/base/scoped_native_library.h
index c0e93f37212bc06b1f52321946e6a7a9a348ba66..bfe5566a2c97773ec8aa001b38ad08c2e9654c40 100644
--- a/base/scoped_native_library.h
+++ b/base/scoped_native_library.h
@@ -31,6 +31,8 @@ class BASE_EXPORT ScopedNativeLibrary {
// Returns true if there's a valid library loaded.
bool is_valid() const { return !!library_; }
+ NativeLibrary get() const { return library_; }
+
void* GetFunctionPointer(const char* function_name) const;
// Takes ownership of the given library handle. Any existing handle will
« no previous file with comments | « base/profiler/win32_stack_frame_unwinder_unittest.cc ('k') | base/scoped_native_library_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698