The general idea of cognitive psychology was surveyed in several 19th century works:
Carpenter, William Benjamin 1874. Principles of mental physiology. London: Henry S. King. Reprinted: ISBN1-85506-602-5
James, William 1890. Principles of psychology. 2 vols, Harvard University Press. Reprinted by Dover Publications in 1950, vol 1: ISBN0-486-20381-6, vol 2: ISBN0-486-20382-4.