1 // Copyright (c) 2013 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.
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_OPTIONS_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_OPTIONS_H_
10 #include "native_client/src/include/nacl_string.h"
11 #include "native_client/src/include/portability.h"
15 // Options for PNaCl translation.
22 // Return a character array of \x00 delimited commandline options.
23 std::vector<char> GetOptCommandline() const;
25 bool translate() const { return translate_; }
26 void set_translate(bool t) { translate_ = t; }
28 int32_t opt_level() const { return opt_level_; }
29 void set_opt_level(int32_t l);
32 // NOTE: There are users of this class that use the copy constructor.
33 // Currently the default copy constructor is good enough, but
34 // double-check that it is the case when more fields are added.
39 } // namespace plugin;
40 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_OPTIONS_H_