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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_resources.h

Issue 10377157: Refactor Pnacl coordinator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sehr comments Created 8 years, 7 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: ppapi/native_client/src/trusted/plugin/pnacl_resources.h
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_resources.h b/ppapi/native_client/src/trusted/plugin/pnacl_resources.h
index 2d8b3562c159b312ac38c813baf18a10df92e7fb..6079da55013bdc004a63b3d0f4470fbbf6dc51a4 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_resources.h
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_resources.h
@@ -13,6 +13,7 @@
#include "native_client/src/shared/srpc/nacl_srpc.h"
#include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
#include "native_client/src/trusted/plugin/delayed_callback.h"
+#include "native_client/src/trusted/plugin/nexe_arch.h"
#include "native_client/src/trusted/plugin/plugin_error.h"
#include "ppapi/utility/completion_callback_factory.h"
@@ -22,6 +23,18 @@ class Manifest;
class Plugin;
class PnaclCoordinator;
+class PnaclUrls {
+ public:
+ static nacl::string GetExtensionUrl() {
+ return nacl::string(kExtensionOrigin) + GetSandboxISA() + "/";
+ }
+ static const nacl::string GetLlcUrl() { return nacl::string(kLlcUrl); }
+ static const nacl::string GetLdUrl() { return nacl::string(kLdUrl); }
+ private:
+ static const char kExtensionOrigin[];
+ static const char kLlcUrl[];
+ static const char kLdUrl[];
+};
// Loads a list of remote resources, providing a way to get file descriptors for
// thse resources. All URLs in relative to resource_base_url_.
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc ('k') | ppapi/native_client/src/trusted/plugin/pnacl_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698