A theory of black holes is developed under the assumption of the weak cosmic censorship. It includes Hawking's theory of black holes in the future asymptotically predictable spacetimes as a special case but it also applies to the cosmological situations including models with nonzero cosmological constant of both signs.