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

Unified Diff: content/common/unix_domain_socket_posix.h

Issue 10512010: Tighten up DEPS some more. NaCl/service process code are including internal content files. Fix the … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win build by beefing up filename_rules.gypi Created 8 years, 6 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
« no previous file with comments | « content/common/hi_res_timer_manager_win.cc ('k') | content/common/unix_domain_socket_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/unix_domain_socket_posix.h
===================================================================
--- content/common/unix_domain_socket_posix.h (revision 140304)
+++ content/common/unix_domain_socket_posix.h (working copy)
@@ -1,56 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
-#define CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
-#pragma once
-
-#include <stdint.h>
-#include <sys/types.h>
-#include <vector>
-
-#include "content/common/content_export.h"
-
-class Pickle;
-
-class CONTENT_EXPORT UnixDomainSocket {
- public:
- // Use sendmsg to write the given msg and include a vector of file
- // descriptors. Returns true if successful.
- static bool SendMsg(int fd,
- const void* msg,
- size_t length,
- const std::vector<int>& fds);
-
- // Use recvmsg to read a message and an array of file descriptors. Returns
- // -1 on failure. Note: will read, at most, 16 descriptors.
- static ssize_t RecvMsg(int fd,
- void* msg,
- size_t length,
- std::vector<int>* fds);
-
- // Perform a sendmsg/recvmsg pair.
- // 1. This process creates a UNIX DGRAM socketpair.
- // 2. This proces writes a request to |fd| with an SCM_RIGHTS control
- // message containing on end of the fresh socket pair.
- // 3. This process blocks reading from the other end of the fresh
- // socketpair.
- // 4. The target process receives the request, processes it and writes the
- // reply to the end of the socketpair contained in the request.
- // 5. This process wakes up and continues.
- //
- // fd: descriptor to send the request on
- // reply: buffer for the reply
- // reply_len: size of |reply|
- // result_fd: (may be NULL) the file descriptor returned in the reply
- // (if any)
- // request: the bytes to send in the request
- static ssize_t SendRecvMsg(int fd,
- uint8_t* reply,
- unsigned reply_len,
- int* result_fd,
- const Pickle& request);
-};
-
-#endif // CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
« no previous file with comments | « content/common/hi_res_timer_manager_win.cc ('k') | content/common/unix_domain_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698