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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h

Issue 10386080: Rename nacl::RefCounted to nacl::RefCountedThreadSafe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License bump Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
index 0b5a6e21497e488c6f2d233ecaf0a0ef704a1c29..0e6f229039cebc8d6411af7643e657883e243f2d 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h
@@ -20,7 +20,6 @@ class PluginInputEvent : public PluginResource {
// Init the PluginInputEvent resource with the given data. Assumes
// character_text has been AddRefed if it's a string, and takes ownership.
void Init(const InputEventData& input_event_data, PP_Var character_text);
- virtual ~PluginInputEvent();
// PluginResource implementation.
virtual bool InitFromBrowserResource(PP_Resource /*resource*/) {
@@ -53,12 +52,15 @@ class PluginInputEvent : public PluginResource {
PP_Bool SetUsbKeyCode(uint32_t usb_key_code);
uint32_t GetUsbKeyCode() const;
- private:
- IMPLEMENT_RESOURCE(PluginInputEvent);
- NACL_DISALLOW_COPY_AND_ASSIGN(PluginInputEvent);
+ protected:
+ virtual ~PluginInputEvent();
+ private:
InputEventData input_event_data_;
PP_Var character_text_; // Undefined if this is not a character event.
+
+ IMPLEMENT_RESOURCE(PluginInputEvent);
+ NACL_DISALLOW_COPY_AND_ASSIGN(PluginInputEvent);
};
} // namespace ppapi_proxy

Powered by Google App Engine
This is Rietveld 408576698