1 // Copyright 2021 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.base.lifetime; 6 7 /** Interface for items that require a controlled clean up. */ 8 public interface Destroyable { 9 /** Cleans up resources held by the implementing object. */ destroy()10 void destroy(); 11 } 12