summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 18:59:20 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 18:59:20 +0000
commit5fe733dee6afd3ab897cafbfcdcc1450264409b0 (patch)
tree64d39f452e1aee1076356da52d836c902e8b92eb /chrome/renderer/render_thread.cc
parent072f6f57560ab3616915b0aa9f61331deb2cf260 (diff)
downloadchromium_src-5fe733dee6afd3ab897cafbfcdcc1450264409b0.zip
chromium_src-5fe733dee6afd3ab897cafbfcdcc1450264409b0.tar.gz
chromium_src-5fe733dee6afd3ab897cafbfcdcc1450264409b0.tar.bz2
POSIX: Transfer network data using shared memory
This patch adds the long planned support for sharing memory on POSIX by transporting file descriptors. It largely builds on the shared memory cleanup work by jrg. We move FileDescriptor out of chrome/common/file_descriptor_posix.h and into base/file_descriptor_posix.h. Since all that's left in the chrome/common verion is the DescriptorSet, those files are renamed to descriptor_set.[h|cc]. The SharedMemoryHandle on POSIX then becomes a typedef to a FileDescriptor and thus can be serialised over IPC. After that, it's mostly a case of cleaning up those snippets of code which considered SharedMemoryHandles to be scaler values. Review URL: http://codereview.chromium.org/21208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r--chrome/renderer/render_thread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 1655e04..2b411c0 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -164,13 +164,13 @@ void RenderThread::CleanUp() {
}
void RenderThread::OnUpdateVisitedLinks(base::SharedMemoryHandle table) {
- DCHECK(table) << "Bad table handle";
+ DCHECK(base::SharedMemory::IsHandleValid(table)) << "Bad table handle";
visited_link_slave_->Init(table);
}
void RenderThread::OnUpdateUserScripts(
base::SharedMemoryHandle scripts) {
- DCHECK(scripts) << "Bad scripts handle";
+ DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle";
user_script_slave_->UpdateScripts(scripts);
}