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

Unified Diff: components/nacl/common/nacl_delegate.h

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix Created 7 years, 6 months 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
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_

Powered by Google App Engine
This is Rietveld 408576698