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

Unified Diff: chrome/browser/visitedlink_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/visitedlink_master.h ('k') | chrome/browser/visitedlink_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/visitedlink_master.cc
===================================================================
--- chrome/browser/visitedlink_master.cc (revision 5371)
+++ chrome/browser/visitedlink_master.cc (working copy)
@@ -258,8 +258,8 @@
return true;
}
-bool VisitedLinkMaster::ShareToProcess(ProcessHandle process,
- SharedMemoryHandle *new_handle) {
+bool VisitedLinkMaster::ShareToProcess(base::ProcessHandle process,
+ base::SharedMemoryHandle *new_handle) {
if (shared_memory_)
return shared_memory_->ShareToProcess(process, new_handle);
@@ -267,7 +267,7 @@
return false;
}
-SharedMemoryHandle VisitedLinkMaster::GetSharedMemoryHandle() {
+base::SharedMemoryHandle VisitedLinkMaster::GetSharedMemoryHandle() {
return shared_memory_->handle();
}
@@ -674,7 +674,7 @@
int32 alloc_size = num_entries * sizeof(Fingerprint) + sizeof(SharedHeader);
// Create the shared memory object.
- shared_memory_ = new SharedMemory();
+ shared_memory_ = new base::SharedMemory();
if (!shared_memory_)
return false;
@@ -712,7 +712,7 @@
}
bool VisitedLinkMaster::BeginReplaceURLTable(int32 num_entries) {
- SharedMemory *old_shared_memory = shared_memory_;
+ base::SharedMemory *old_shared_memory = shared_memory_;
Fingerprint* old_hash_table = hash_table_;
int32 old_table_length = table_length_;
if (!CreateURLTable(num_entries, true)) {
@@ -771,7 +771,7 @@
DebugValidate();
#endif
- SharedMemory* old_shared_memory = shared_memory_;
+ base::SharedMemory* old_shared_memory = shared_memory_;
Fingerprint* old_hash_table = hash_table_;
int32 old_table_length = table_length_;
if (!BeginReplaceURLTable(new_size))
@@ -870,7 +870,7 @@
// We are responsible for freeing it AFTER it has been replaced if
// replacement succeeds.
- SharedMemory* old_shared_memory = shared_memory_;
+ base::SharedMemory* old_shared_memory = shared_memory_;
int new_table_size = NewTableSizeForCount(
static_cast<int>(fingerprints.size()));
« no previous file with comments | « chrome/browser/visitedlink_master.h ('k') | chrome/browser/visitedlink_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698