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

Unified Diff: chrome/browser/extensions/user_script_master.h

Issue 282393002: Getting rid of raw pointers to SharedMemory in UserScriptMaster (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: chrome/browser/extensions/user_script_master.h
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h
index 909bf8bffc65a15e824b516ca7f43ee3b847b7f9..7a56efa810af522f1c7d6cee40deb09e61d1a8a4 100644
--- a/chrome/browser/extensions/user_script_master.h
+++ b/chrome/browser/extensions/user_script_master.h
@@ -51,7 +51,7 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
}
// Called by the script reloader when new scripts have been loaded.
- void NewScriptsAvailable(base::SharedMemory* handle);
+ void NewScriptsAvailable(scoped_ptr<base::SharedMemory> handle);
// Return true if we have any scripts ready.
bool ScriptsReady() const { return shared_memory_.get() != NULL; }
@@ -105,7 +105,7 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
// Runs on the master thread.
// Notify the master that new scripts are available.
- void NotifyMaster(base::SharedMemory* memory);
+ void NotifyMaster(scoped_ptr<base::SharedMemory> memory);
// Runs on the File thread.
// Load the specified user scripts, calling NotifyMaster when done.
« no previous file with comments | « no previous file | chrome/browser/extensions/user_script_master.cc » ('j') | chrome/browser/extensions/user_script_master.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698