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

Unified Diff: chrome/browser/greasemonkey_master.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | « chrome/browser/greasemonkey_master.h ('k') | chrome/browser/greasemonkey_master_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/greasemonkey_master.cc
===================================================================
--- chrome/browser/greasemonkey_master.cc (revision 5371)
+++ chrome/browser/greasemonkey_master.cc (working copy)
@@ -49,7 +49,7 @@
// Runs on the master thread.
// Notify the master that new scripts are available.
- void NotifyMaster(SharedMemory* memory);
+ void NotifyMaster(base::SharedMemory* memory);
// Runs on the File thread.
// Scan the script directory for scripts, calling NotifyMaster when done.
@@ -60,7 +60,7 @@
// Runs on the File thread.
// Scan the script directory for scripts, returning either a new SharedMemory
// or NULL on error.
- SharedMemory* GetNewScripts(const FilePath& script_dir);
+ base::SharedMemory* GetNewScripts(const FilePath& script_dir);
// A pointer back to our master.
// May be NULL if DisownMaster() is called.
@@ -85,7 +85,8 @@
script_dir));
}
-void GreasemonkeyMaster::ScriptReloader::NotifyMaster(SharedMemory* memory) {
+void GreasemonkeyMaster::ScriptReloader::NotifyMaster(
+ base::SharedMemory* memory) {
if (!master_) {
// The master went away, so these new scripts aren't useful anymore.
delete memory;
@@ -99,7 +100,7 @@
}
void GreasemonkeyMaster::ScriptReloader::RunScan(const FilePath script_dir) {
- SharedMemory* shared_memory = GetNewScripts(script_dir);
+ base::SharedMemory* shared_memory = GetNewScripts(script_dir);
// Post the new scripts back to the master's message loop.
master_message_loop_->PostTask(FROM_HERE,
@@ -108,7 +109,7 @@
shared_memory));
}
-SharedMemory* GreasemonkeyMaster::ScriptReloader::GetNewScripts(
+base::SharedMemory* GreasemonkeyMaster::ScriptReloader::GetNewScripts(
const FilePath& script_dir) {
std::vector<std::wstring> scripts;
@@ -140,7 +141,7 @@
}
// Create the shared memory object.
- scoped_ptr<SharedMemory> shared_memory(new SharedMemory());
+ scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory());
if (!shared_memory->Create(std::wstring(), // anonymous
false, // read-only
@@ -179,9 +180,9 @@
script_reloader_->DisownMaster();
}
-void GreasemonkeyMaster::NewScriptsAvailable(SharedMemory* handle) {
+void GreasemonkeyMaster::NewScriptsAvailable(base::SharedMemory* handle) {
// Ensure handle is deleted or released.
- scoped_ptr<SharedMemory> handle_deleter(handle);
+ scoped_ptr<base::SharedMemory> handle_deleter(handle);
if (pending_scan_) {
// While we were scanning, there were further changes. Don't bother
@@ -196,7 +197,7 @@
NotificationService::current()->Notify(NOTIFY_NEW_USER_SCRIPTS,
NotificationService::AllSources(),
- Details<SharedMemory>(handle));
+ Details<base::SharedMemory>(handle));
}
}
« no previous file with comments | « chrome/browser/greasemonkey_master.h ('k') | chrome/browser/greasemonkey_master_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698