diff options
author | caitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-05 21:32:20 +0000 |
---|---|---|
committer | caitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-05 21:32:20 +0000 |
commit | 445232a8ac4eb0b9d2c1c06bd27c458fc3be134d (patch) | |
tree | 67779dc59db6126a1e78482a71e9120b6dbffa6d /chrome_elf/thunk_getter.h | |
parent | 0875c5cc614753b5693b04b94607b84bb32a0459 (diff) | |
download | chromium_src-445232a8ac4eb0b9d2c1c06bd27c458fc3be134d.zip chromium_src-445232a8ac4eb0b9d2c1c06bd27c458fc3be134d.tar.gz chromium_src-445232a8ac4eb0b9d2c1c06bd27c458fc3be134d.tar.bz2 |
Make chrome_elf use thunks instead of function pointers.
1. Add functionality to ServiceResolverThunk to copy a thunk without patching.
2. Move chrome_elf thunk-handling code to a common location.
3. Use a thunk instead of a f'n ptr for redirects.
BUG=334379
Review URL: https://codereview.chromium.org/183833004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf/thunk_getter.h')
-rw-r--r-- | chrome_elf/thunk_getter.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome_elf/thunk_getter.h b/chrome_elf/thunk_getter.h new file mode 100644 index 0000000..5bc20fe --- /dev/null +++ b/chrome_elf/thunk_getter.h @@ -0,0 +1,16 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_ELF_THUNK_GETTER_H_ +#define CHROME_ELF_THUNK_GETTER_H_ + +namespace sandbox { +class ServiceResolverThunk; +} + +// Creates a |ServiceResolverThunk| based on the OS version. Ownership of the +// resulting thunk is passed to the caller. +sandbox::ServiceResolverThunk* GetThunk(bool relaxed); + +#endif // CHROME_ELF_THUNK_GETTER_H_ |