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

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

Issue 24196005: [PPAPI] ResourceVar now holds a pending renderer and browser host ID. (Closed) Base URL: http://git.chromium.org/chromium/src.git@pepper-resourcerawvardata
Patch Set: Rename set_pending_browser_host_id. Created 7 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 PPAPI_PROXY_RAW_VAR_DATA_H_ 5 #ifndef PPAPI_PROXY_RAW_VAR_DATA_H_
6 #define PPAPI_PROXY_RAW_VAR_DATA_H_ 6 #define PPAPI_PROXY_RAW_VAR_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 const HandleWriter& handle_writer) OVERRIDE; 276 const HandleWriter& handle_writer) OVERRIDE;
277 virtual bool Read(PP_VarType type, 277 virtual bool Read(PP_VarType type,
278 const IPC::Message* m, 278 const IPC::Message* m,
279 PickleIterator* iter) OVERRIDE; 279 PickleIterator* iter) OVERRIDE;
280 280
281 private: 281 private:
282 // Resource ID in the plugin. If one has not yet been created, this is 0. 282 // Resource ID in the plugin. If one has not yet been created, this is 0.
283 // This is a borrowed reference; the resource's refcount is not incremented. 283 // This is a borrowed reference; the resource's refcount is not incremented.
284 PP_Resource pp_resource_; 284 PP_Resource pp_resource_;
285 285
286 // Pending resource host ID in the renderer.
287 int pending_renderer_host_id_;
288
289 // Pending resource host ID in the browser.
290 int pending_browser_host_id_;
291
286 // A message containing information about how to create a plugin-side 292 // A message containing information about how to create a plugin-side
287 // resource. The message type will vary based on the resource type, and will 293 // resource. The message type will vary based on the resource type, and will
288 // usually contain a pending resource host ID, and other required information. 294 // usually contain a pending resource host ID, and other required information.
289 // If the resource was created directly, this is NULL. 295 // If the resource was created directly, this is NULL.
290 scoped_ptr<IPC::Message> creation_message_; 296 scoped_ptr<IPC::Message> creation_message_;
291 }; 297 };
292 298
293 } // namespace proxy 299 } // namespace proxy
294 } // namespace ppapi 300 } // namespace ppapi
295 301
296 #endif // PPAPI_PROXY_RAW_VAR_DATA_H_ 302 #endif // PPAPI_PROXY_RAW_VAR_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698