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

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

Issue 605593002: PPAPI: Support sending browser-hosted resources synchronously Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content_browsertests 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/raw_var_data.cc ('k') | ppapi/tests/test_message_handler.h » ('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_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 struct CompletedBrowserResourceHosts {
143 CompletedBrowserResourceHosts() : sequence_id(0) {}
144 CompletedBrowserResourceHosts(int sequence_id_param,
145 const std::vector<int>& host_ids_param)
146 : sequence_id(sequence_id_param), host_ids(host_ids_param) {
147 }
148 int sequence_id;
149 std::vector<int> host_ids;
150 };
151
142 } // namespace proxy 152 } // namespace proxy
143 } // namespace ppapi 153 } // namespace ppapi
144 154
145 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 155 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/raw_var_data.cc ('k') | ppapi/tests/test_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698