Index: ui/gfx/gtk_native_view_id_manager.h |
diff --git a/ui/gfx/gtk_native_view_id_manager.h b/ui/gfx/gtk_native_view_id_manager.h |
index 462a51d7ef3212035efeceed686026aca3819326..6ea16a28ef852cb052c35e9adec974c3e8d301ae 100644 |
--- a/ui/gfx/gtk_native_view_id_manager.h |
+++ b/ui/gfx/gtk_native_view_id_manager.h |
@@ -72,6 +72,11 @@ class GtkNativeViewManager { |
// returns: true if |id| is a valid id, false otherwise. |
bool GetPermanentXIDForId(XID* xid, gfx::NativeViewId id); |
+ // Can be called from any thread. |
+ // Will return false if the given XID isn't permanent or has already been |
+ // released. |
+ bool AddRefPermanentXID(XID xid); |
+ |
// Must be called from the UI thread because we may need to access a |
// GtkWidget or destroy a GdkWindow. |
// |