As mentioned in the comments, the definition mentioned makes sense when there are a finite number of outcomes, each of which is equally likely. This is so in the first case, but not so in the second case. You can recast the second problem as a new experiment where outcomes are equally likely and proceed.
(1) The favorable cases are $TTH,HTT,THT$ out of a totality of eight cases: $HHH,HHT,HTH,THH,TTH,HTT, THT, TTT$. So the probability is $3/8$.
(2) To apply the above definition, let us suppose a single toss is equivalent to drawing a ticket out of a box containing 100 slips, out of which 85 are marked heads (and are further labeled as 1st head, 2nd head etc) and 15 are marked tails (and are further labeled 1st tail, 2nd tail etc). Our experiment consists of drawing a slip, replacing it and then drawing again. This is equivalent to having 3 such boxes and drawing a slip from each. Now everything is equally likely. A counting argument shows that there are a totality of $100^3$ cases out of which $3\cdot 15^2\cdot 85=57375$ are favorable. So the probability, in this case, ought to be $\frac{57375}{100^3}$.
Concerning the comment '"equally likely" is a dangerous word.':
Actually, the underlying philosophy for defining probability followed by your book is the Principle of Insufficient Reason. According to this principle, if we have no evidence of the propensity of any particular outcome of the experiment over others, we should accord an equal measure of certainty to all the outcomes. In other words, if there are $n$ outcomes possible for our experiment and we have no other information, then the probability of each outcome should be $\frac{1}{n}$. As a corollary, if the the set of our favorable cases $A$ has $m$ outcomes in it and there are a total of $n$ outcomes, we should define $P(A)=\frac{m}{n}$.
This principle makes sense in the first case, but not so in the second case where we have some evidence regarding the coin's biasedness that we ought to incorporate. To apply the principle we can recast the second problem as a new experiment where we have no information again.
Note that this principle is not a mathematical law and we are at liberty to accept it or not. It's just that it suits a large number of situations.