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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/pnacl_resources.h

Issue 176813010: Avoid blocking the PNaCl translator processes when chrome NaCl GDB flag is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const pp::CompletionCallback& all_loaded_callback); 71 const pp::CompletionCallback& all_loaded_callback);
72 72
73 const nacl::string& GetLlcUrl() { 73 const nacl::string& GetLlcUrl() {
74 return llc_tool_name; 74 return llc_tool_name;
75 } 75 }
76 76
77 const nacl::string& GetLdUrl() { 77 const nacl::string& GetLdUrl() {
78 return ld_tool_name; 78 return ld_tool_name;
79 } 79 }
80 80
81 nacl::string GetFullUrl(const nacl::string& partial_url) const;
82
81 // Get file descs by name. Only valid after StartLoad's completion callback 83 // Get file descs by name. Only valid after StartLoad's completion callback
82 // fired. 84 // fired.
83 nacl::DescWrapper* WrapperForUrl(const nacl::string& url); 85 nacl::DescWrapper* WrapperForUrl(const nacl::string& url);
84 86
85 static int32_t GetPnaclFD(Plugin* plugin, const char* filename); 87 static int32_t GetPnaclFD(Plugin* plugin, const char* filename);
86 88
87 private: 89 private:
88 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclResources); 90 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclResources);
89 91
90 // The plugin requesting the resource loading. 92 // The plugin requesting the resource loading.
(...skipping 14 matching lines...) Expand all
105 // Otherwise returns false and places an error message in |errmsg|. 107 // Otherwise returns false and places an error message in |errmsg|.
106 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); 108 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg);
107 109
108 // Convenience function for reporting an error while reading the resource 110 // Convenience function for reporting an error while reading the resource
109 // info file. 111 // info file.
110 void ReadResourceInfoError(const nacl::string& msg); 112 void ReadResourceInfoError(const nacl::string& msg);
111 }; 113 };
112 114
113 } // namespace plugin; 115 } // namespace plugin;
114 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ 116 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/plugin.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