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

Unified Diff: components/nacl/renderer/nexe_load_manager.h

Issue 484303002: Pepper: Move NexeLoadManager map inside that class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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
« no previous file with comments | « no previous file | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/nexe_load_manager.h
diff --git a/components/nacl/renderer/nexe_load_manager.h b/components/nacl/renderer/nexe_load_manager.h
index 2c3b4a94670ab26ecf55dde99222d88c5515e811..8a816900f473e8d206819222f1144e5d4adcf122 100644
--- a/components/nacl/renderer/nexe_load_manager.h
+++ b/components/nacl/renderer/nexe_load_manager.h
@@ -30,9 +30,13 @@ class TrustedPluginChannel;
// nexe.
class NexeLoadManager {
public:
- explicit NexeLoadManager(PP_Instance instance);
~NexeLoadManager();
+ static void Create(PP_Instance instance);
+ // Non-owning pointer.
+ static NexeLoadManager* Get(PP_Instance instance);
+ static void Delete(PP_Instance instance);
+
void NexeFileDidOpen(int32_t pp_error,
const base::File& file,
int32_t http_status,
@@ -120,6 +124,8 @@ class NexeLoadManager {
private:
DISALLOW_COPY_AND_ASSIGN(NexeLoadManager);
+ explicit NexeLoadManager(PP_Instance instance);
+
void ReportDeadNexe();
// Copies a crash log to the console, one line at a time.
« no previous file with comments | « no previous file | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698