Chromium Code Reviews| Index: components/nacl/common/nacl_delegate.h |
| diff --git a/components/nacl/common/nacl_delegate.h b/components/nacl/common/nacl_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..74233db2b52ec1c21d6a2ace37185513f09895ee |
| --- /dev/null |
| +++ b/components/nacl/common/nacl_delegate.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2013 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 COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ |
| +#define COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ |
| + |
| +#include "build/build_config.h" |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +class CommandLine; |
| + |
| +// This class encapsulates all the dependencies that nacl has on chrome |
| +class NaClDelegate { |
| + public: |
| + NaClDelegate() {} |
| + ~NaClDelegate() {} |
| + |
| + // Copy all the relevant arguments from the command line of the current |
| + // process to cmd_line that will be used for launching the NaCl loader/broker. |
| + void CopyNaClCommandLineArguments(CommandLine* cmd_line); |
| +}; |
| + |
| +extern NaClDelegate* GetNaClDelegate(); |
|
jam
2013/06/17 20:10:43
please see other delegates for other modules for e
yael.aharon1
2013/06/18 17:16:30
My problem here is that the only code from chrome
jam
2013/06/19 17:55:53
yes, i'm totally fine with not passing these two s
|
| + |
| +#endif // COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ |