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

Side by Side Diff: chrome/nacl/nacl_ipc_adapter.h

Issue 15274002: Do not translate the file open flags other than read/write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_rel build Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/nacl/nacl_ipc_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_NACL_NACL_IPC_ADAPTER_H_ 5 #ifndef CHROME_NACL_NACL_IPC_ADAPTER_H_
6 #define CHROME_NACL_NACL_IPC_ADAPTER_H_ 6 #define CHROME_NACL_NACL_IPC_ADAPTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/pickle.h" 17 #include "base/pickle.h"
18 #include "base/shared_memory.h" 18 #include "base/shared_memory.h"
19 #include "base/synchronization/condition_variable.h" 19 #include "base/synchronization/condition_variable.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "base/task_runner.h" 21 #include "base/task_runner.h"
22 #include "ipc/ipc_listener.h" 22 #include "ipc/ipc_listener.h"
23 #include "ppapi/c/pp_stdint.h"
23 #include "ppapi/proxy/handle_converter.h" 24 #include "ppapi/proxy/handle_converter.h"
24 25
25 struct NaClDesc; 26 struct NaClDesc;
26 struct NaClImcTypedMsgHdr; 27 struct NaClImcTypedMsgHdr;
27 struct PP_Size; 28 struct PP_Size;
28 29
29 namespace IPC { 30 namespace IPC {
30 class Channel; 31 class Channel;
31 struct ChannelHandle; 32 struct ChannelHandle;
32 } 33 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 179
179 // To be accessed inside of lock_ only. 180 // To be accessed inside of lock_ only.
180 LockedData locked_data_; 181 LockedData locked_data_;
181 182
182 // To be accessed on the I/O thread (via task runner) only. 183 // To be accessed on the I/O thread (via task runner) only.
183 IOThreadData io_thread_data_; 184 IOThreadData io_thread_data_;
184 185
185 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); 186 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter);
186 }; 187 };
187 188
189 // Export TranslatePepperFileReadWriteOpenFlags for testing.
190 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags);
191
188 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ 192 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/nacl/nacl_ipc_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698