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

Unified Diff: src/trusted/gio/gio_shm.h

Issue 594733005: Cleanup: Remove src/trusted/gio/, since it is unused (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix Created 6 years, 3 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 | « src/trusted/gio/gio_nacl_desc_test.c ('k') | src/trusted/gio/gio_shm.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/gio/gio_shm.h
diff --git a/src/trusted/gio/gio_shm.h b/src/trusted/gio/gio_shm.h
deleted file mode 100644
index d84d8da742a891240e0c64ecab953ed7b169b21a..0000000000000000000000000000000000000000
--- a/src/trusted/gio/gio_shm.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/*
- * Subclass of the gio object for use in trusted code, providing I/O
- * services to a shared memory object.
- */
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_SHM_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_SHM_H_
-
-#include "native_client/src/include/nacl_base.h"
-
-#include "native_client/src/shared/gio/gio.h"
-
-EXTERN_C_BEGIN
-
-struct NaClDesc;
-
-struct NaClGioShm {
- /* public */
- struct Gio base;
- struct NaClDesc *shmp;
- /*
- * the shmp is public for e.g. xferring via nrd_xfer
- */
-
- size_t io_offset;
- size_t shm_sz;
- char *cur_window;
- size_t window_offset;
- size_t window_size;
-};
-
-/*
- * Create a Gio object backed by a NaClDesc -- any NaClDesc objects
- * for which the Map virtual function is usable. The shm_size is the
- * size of the file data in the shm object -- so the requirement is
- * that *shmp object's size is at least shm_size (and it would
- * normally be, since the object size is rounded to
- * NACL_MAP_PAGESIZE). The shm_size value is used to limit Seek and
- * to know when to report EOF on Read.
- *
- * The NaClGioShm object is read-only. It takes a reference to the
- * shmp when constructed, and releases a reference on destruction.
- */
-int NaClGioShmCtor(struct NaClGioShm *self,
- struct NaClDesc *shmp,
- size_t shm_size);
-
-int NaClGioShmAllocCtor(struct NaClGioShm *self,
- size_t shm_size);
-
-/* Dtor is a virtual function */
-
-EXTERN_C_END
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_GIO_WRAPPED_DESC_GIO_SHM_H_ */
« no previous file with comments | « src/trusted/gio/gio_nacl_desc_test.c ('k') | src/trusted/gio/gio_shm.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698