Upload upstream chromium 69.0.3497
[platform/framework/web/chromium-efl.git] / base / native_library_ios.mm
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/native_library.h"
6
7 #include "base/logging.h"
8
9 #include "base/strings/string_util.h"
10
11 namespace base {
12
13 std::string NativeLibraryLoadError::ToString() const {
14   return message;
15 }
16
17 NativeLibrary LoadNativeLibraryWithOptions(const base::FilePath& library_path,
18                                            const NativeLibraryOptions& options,
19                                            NativeLibraryLoadError* error) {
20   NOTIMPLEMENTED();
21   if (error)
22     error->message = "Not implemented.";
23   return nullptr;
24 }
25
26 void UnloadNativeLibrary(NativeLibrary library) {
27   NOTIMPLEMENTED();
28   DCHECK(!library);
29 }
30
31 void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
32                                           StringPiece name) {
33   NOTIMPLEMENTED();
34   return nullptr;
35 }
36
37 std::string GetNativeLibraryName(StringPiece name) {
38   DCHECK(IsStringASCII(name));
39   return name.as_string();
40 }
41
42 std::string GetLoadableModuleName(StringPiece name) {
43   return GetNativeLibraryName(name);
44 }
45
46 }  // namespace base