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

Unified Diff: webrtc/base/latebindingsymboltable.h

Issue 2534593002: Get rid of webrtc/base/latebindingsymboltable* (Closed)
Patch Set: Created 4 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 | « webrtc/base/BUILD.gn ('k') | webrtc/base/latebindingsymboltable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/latebindingsymboltable.h
diff --git a/webrtc/base/latebindingsymboltable.h b/webrtc/base/latebindingsymboltable.h
deleted file mode 100644
index 794a4ab5a8f17bbe5db3f5b2557947e1248a34a4..0000000000000000000000000000000000000000
--- a/webrtc/base/latebindingsymboltable.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_BASE_LATEBINDINGSYMBOLTABLE_H_
-#define WEBRTC_BASE_LATEBINDINGSYMBOLTABLE_H_
-
-#include <string.h>
-
-#include "webrtc/base/common.h"
-#include "webrtc/base/constructormagic.h"
-
-namespace rtc {
-
-#if defined(WEBRTC_POSIX)
-typedef void *DllHandle;
-#else
-#error Not implemented for this platform
-#endif
-
-// This is the base class for "symbol table" classes to simplify the dynamic
-// loading of symbols from DLLs. Currently the implementation only supports
-// Linux and OS X, and pure C symbols (or extern "C" symbols that wrap C++
-// functions). Sub-classes for specific DLLs are generated via the "supermacro"
-// files latebindingsymboltable.h.def and latebindingsymboltable.cc.def. See
-// talk/sound/pulseaudiosymboltable.(h|cc) for an example.
-class LateBindingSymbolTable {
- public:
- struct TableInfo {
- const char *dll_name;
- int num_symbols;
- // Array of size num_symbols.
- const char *const *symbol_names;
- };
-
- LateBindingSymbolTable(const TableInfo *info, void **table);
- ~LateBindingSymbolTable();
-
- bool IsLoaded() const;
- // Loads the DLL and the symbol table. Returns true iff the DLL and symbol
- // table loaded successfully.
- bool Load();
- // Like load, but allows overriding the dll path for when the dll path is
- // dynamic.
- bool LoadFromPath(const char *dll_path);
- void Unload();
-
- // Gets the raw OS handle to the DLL. Be careful what you do with it.
- DllHandle GetDllHandle() const { return handle_; }
-
- private:
- void ClearSymbols();
-
- const TableInfo *info_;
- void **table_;
- DllHandle handle_;
- bool undefined_symbols_;
-
- RTC_DISALLOW_COPY_AND_ASSIGN(LateBindingSymbolTable);
-};
-
-} // namespace rtc
-
-#endif // WEBRTC_BASE_LATEBINDINGSYMBOLTABLE_H_
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/latebindingsymboltable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698