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

Side by Side Diff: components/nacl/loader/nacl_ipc_adapter.h

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // thread every function is called on. 56 // thread every function is called on.
57 class NaClIPCAdapter : public base::RefCountedThreadSafe<NaClIPCAdapter>, 57 class NaClIPCAdapter : public base::RefCountedThreadSafe<NaClIPCAdapter>,
58 public IPC::Listener { 58 public IPC::Listener {
59 public: 59 public:
60 // Chrome's IPC message format varies by platform, NaCl's does not. In 60 // Chrome's IPC message format varies by platform, NaCl's does not. In
61 // particular, the header has some extra fields on Posix platforms. Since 61 // particular, the header has some extra fields on Posix platforms. Since
62 // NaCl is a Posix environment, it gets that version of the header. This 62 // NaCl is a Posix environment, it gets that version of the header. This
63 // header is duplicated here so we have a cross-platform definition of the 63 // header is duplicated here so we have a cross-platform definition of the
64 // header we're exposing to NaCl. 64 // header we're exposing to NaCl.
65 #pragma pack(push, 4) 65 #pragma pack(push, 4)
66 struct NaClMessageHeader : public Pickle::Header { 66 struct NaClMessageHeader : public base::Pickle::Header {
67 int32 routing; 67 int32 routing;
68 uint32 type; 68 uint32 type;
69 uint32 flags; 69 uint32 flags;
70 uint16 num_fds; 70 uint16 num_fds;
71 uint16 pad; 71 uint16 pad;
72 }; 72 };
73 #pragma pack(pop) 73 #pragma pack(pop)
74 74
75 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)> 75 typedef base::Callback<void(IPC::PlatformFileForTransit, base::FilePath)>
76 ResolveFileTokenReplyCallback; 76 ResolveFileTokenReplyCallback;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // To be accessed on the I/O thread (via task runner) only. 230 // To be accessed on the I/O thread (via task runner) only.
231 IOThreadData io_thread_data_; 231 IOThreadData io_thread_data_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter); 233 DISALLOW_COPY_AND_ASSIGN(NaClIPCAdapter);
234 }; 234 };
235 235
236 // Export TranslatePepperFileReadWriteOpenFlags for testing. 236 // Export TranslatePepperFileReadWriteOpenFlags for testing.
237 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags); 237 int TranslatePepperFileReadWriteOpenFlagsForTesting(int32_t pp_open_flags);
238 238
239 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_ 239 #endif // CHROME_NACL_NACL_IPC_ADAPTER_H_
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_validation_cache.h ('k') | components/network_hints/common/network_hints_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698