summaryrefslogtreecommitdiffstats
path: root/chrome/browser/visitedlink_master.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:25:15 +0000
commit176aa48371da91eb98d675d87b4e70c7b26d696f (patch)
tree4c972de6ecd5a54650ab1dc7d421187f5d25834f /chrome/browser/visitedlink_master.cc
parent9a3f0ac2899139ace97e399015259d028b4d5704 (diff)
downloadchromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz
chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes). Review URL: http://codereview.chromium.org/10895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/visitedlink_master.cc')
-rw-r--r--chrome/browser/visitedlink_master.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/visitedlink_master.cc b/chrome/browser/visitedlink_master.cc
index ae63204..ed2c1f4 100644
--- a/chrome/browser/visitedlink_master.cc
+++ b/chrome/browser/visitedlink_master.cc
@@ -258,8 +258,8 @@ bool VisitedLinkMaster::Init() {
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 @@ bool VisitedLinkMaster::ShareToProcess(ProcessHandle process,
return false;
}
-SharedMemoryHandle VisitedLinkMaster::GetSharedMemoryHandle() {
+base::SharedMemoryHandle VisitedLinkMaster::GetSharedMemoryHandle() {
return shared_memory_->handle();
}
@@ -674,7 +674,7 @@ bool VisitedLinkMaster::CreateURLTable(int32 num_entries, bool init_to_empty) {
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::CreateURLTable(int32 num_entries, bool init_to_empty) {
}
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 @@ void VisitedLinkMaster::ResizeTable(int32 new_size) {
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 @@ void VisitedLinkMaster::OnTableRebuildComplete(
// 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()));