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

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.h

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5 #ifndef LIBRARIES_NACL_MOUNTS_MOUNT_NODE_MEM_H_
6 #define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_MEM_H_
7
8 #include "nacl_mounts/mount_node.h"
9
10 class MountNodeMem : public MountNode {
11 public:
12 explicit MountNodeMem(Mount* mount);
13
14 protected:
15 virtual ~MountNodeMem();
16
17 public:
18 // Normal read/write operations on a file
19 virtual int Read(size_t offs, void* buf, size_t count);
20 virtual int Write(size_t offs, const void* buf, size_t count);
21 virtual int Truncate(size_t size);
22
23 private:
24 char* data_;
25 size_t capacity_;
26 friend class MountMem;
27 };
28
29 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_MEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698