Promote GetAllCookiesAsync from CookieMonster to CookieStore.

This means that more classes can just use the CookieStore interface,
rather than depending on a particular implementation of it.

BUG=579653

Review URL: https://codereview.chromium.org/1618943002

Cr-Commit-Position: refs/heads/master@{#371080}
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index 0dd52ef..727e84b2 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -973,12 +973,6 @@
   DoCookieTaskForURL(task, url);
 }
 
-void CookieMonster::GetAllCookiesAsync(const GetCookieListCallback& callback) {
-  scoped_refptr<GetAllCookiesTask> task = new GetAllCookiesTask(this, callback);
-
-  DoCookieTask(task);
-}
-
 void CookieMonster::GetAllCookiesForURLWithOptionsAsync(
     const GURL& url,
     const CookieOptions& options,
@@ -1060,6 +1054,12 @@
   DoCookieTaskForURL(task, url);
 }
 
+void CookieMonster::GetAllCookiesAsync(const GetCookieListCallback& callback) {
+  scoped_refptr<GetAllCookiesTask> task = new GetAllCookiesTask(this, callback);
+
+  DoCookieTask(task);
+}
+
 void CookieMonster::DeleteCookieAsync(const GURL& url,
                                       const std::string& cookie_name,
                                       const base::Closure& callback) {