throughout the formative period , between 1815-1880 , indian frontiers were deliberately extended , largely to keep secure their investments , and it is not surprising that threats - real or imaginary - to the security of the sub-continent were a major pre-occupation of successive british governments for the whole of the 19th century and into the next and india remained the key to british foreign policy at the turn of the century , especially in relation to imperialism in africa .