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

Side by Side Diff: ppapi/proxy/resource_message_params.h

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month 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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/resource_message_params.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 PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ 5 #ifndef PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_
6 #define PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ 6 #define PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // output parameter will be untouched. 47 // output parameter will be untouched.
48 // 48 //
49 // Note: 1) the handle could still be a "null" or invalid handle of the right 49 // Note: 1) the handle could still be a "null" or invalid handle of the right
50 // type and the functions will succeed. 50 // type and the functions will succeed.
51 // 2) the caller is responsible for closing the returned handle, if it 51 // 2) the caller is responsible for closing the returned handle, if it
52 // is valid. 52 // is valid.
53 bool TakeSharedMemoryHandleAtIndex(size_t index, 53 bool TakeSharedMemoryHandleAtIndex(size_t index,
54 base::SharedMemoryHandle* handle) const; 54 base::SharedMemoryHandle* handle) const;
55 bool TakeSocketHandleAtIndex(size_t index, 55 bool TakeSocketHandleAtIndex(size_t index,
56 IPC::PlatformFileForTransit* handle) const; 56 IPC::PlatformFileForTransit* handle) const;
57 void TakeAllSharedMemoryHandles(
58 std::vector<base::SharedMemoryHandle>* handles) const;
57 59
58 // Appends the given handle to the list of handles sent with the call or 60 // Appends the given handle to the list of handles sent with the call or
59 // reply. 61 // reply.
60 void AppendHandle(const SerializedHandle& handle) const; 62 void AppendHandle(const SerializedHandle& handle) const;
61 63
62 protected: 64 protected:
63 ResourceMessageParams(); 65 ResourceMessageParams();
64 ResourceMessageParams(PP_Resource resource, int32_t sequence); 66 ResourceMessageParams(PP_Resource resource, int32_t sequence);
65 67
66 virtual void Serialize(IPC::Message* msg) const; 68 virtual void Serialize(IPC::Message* msg) const;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 static bool Read(const Message* m, PickleIterator* iter, param_type* r) { 183 static bool Read(const Message* m, PickleIterator* iter, param_type* r) {
182 return r->Deserialize(m, iter); 184 return r->Deserialize(m, iter);
183 } 185 }
184 static void Log(const param_type& p, std::string* l) { 186 static void Log(const param_type& p, std::string* l) {
185 } 187 }
186 }; 188 };
187 189
188 } // namespace IPC 190 } // namespace IPC
189 191
190 #endif // PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ 192 #endif // PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/resource_message_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698