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

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

Issue 730603002: PPAPI: Refactor renderer side of browser host creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 6 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/ppapi_messages.h ('k') | no next file » | 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_SERIALIZED_STRUCTS_H_ 5 #ifndef PPAPI_PROXY_SERIALIZED_STRUCTS_H_
6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::SharedMemoryHandle handle; 132 base::SharedMemoryHandle handle;
133 }; 133 };
134 134
135 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. 135 // TODO(raymes): Make ImageHandle compatible with SerializedHandle.
136 #if defined(OS_WIN) 136 #if defined(OS_WIN)
137 typedef HANDLE ImageHandle; 137 typedef HANDLE ImageHandle;
138 #else 138 #else
139 typedef base::SharedMemoryHandle ImageHandle; 139 typedef base::SharedMemoryHandle ImageHandle;
140 #endif 140 #endif
141 141
142 // CompletedBrowserResourceHosts contains information about the browser-side
143 // hosts for resources that the renderer asked the browser to create.
144 struct CompletedBrowserResourceHosts {
145 CompletedBrowserResourceHosts() : sequence_number(0) {}
146 CompletedBrowserResourceHosts(int sequence_number_param,
147 const std::vector<int>& host_ids_param)
148 : sequence_number(sequence_number_param), host_ids(host_ids_param) {}
149 int sequence_number;
150 std::vector<int> host_ids;
151 };
152
142 } // namespace proxy 153 } // namespace proxy
143 } // namespace ppapi 154 } // namespace ppapi
144 155
145 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 156 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698