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

Side by Side Diff: src/shared/ppapi_proxy/plugin_resource.cc

Issue 7395005: Proxy PPB_Input_Event, PPP_Input_Event, and associated IFs. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: copyright headers Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client 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 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
6 6
7 namespace ppapi_proxy { 7 namespace ppapi_proxy {
8 8
9 PluginResource::PluginResource() 9 PluginResource::PluginResource() {
10 : resource_id_(0) {
11 } 10 }
12 11
13 PluginResource::~PluginResource() { 12 PluginResource::~PluginResource() {
14 } 13 }
15 14
16 PP_Resource PluginResource::GetReference() {
17 PluginResourceTracker::Get()->AddRefResource(resource_id_);
18 return resource_id_;
19 }
20
21 void PluginResource::StoppedTracking() {
22 resource_id_ = 0;
23 }
24
25 } // namespace ppapi_proxy 15 } // namespace ppapi_proxy
26 16
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/plugin_resource.h ('k') | src/shared/ppapi_proxy/plugin_resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698