Passing mime type in DidLoadResourceFromMemoryCache and more info in LoadFromMemoryCacheDetails.
The mime_type is needed for speculative resource prefetching.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10413064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138638 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 063275e..a73713f 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1690,6 +1690,7 @@
const GURL& url,
const std::string& security_info,
const std::string& http_method,
+ const std::string& mime_type,
ResourceType::Type resource_type) {
base::StatsCounter cache("WebKit.CacheHit");
cache.Increment();
@@ -1702,7 +1703,8 @@
content::DeserializeSecurityInfo(security_info, &cert_id, &cert_status,
&security_bits, &connection_status);
LoadFromMemoryCacheDetails details(url, GetRenderProcessHost()->GetID(),
- cert_id, cert_status);
+ cert_id, cert_status, http_method,
+ mime_type, resource_type);
content::NotificationService::current()->Notify(
content::NOTIFICATION_LOAD_FROM_MEMORY_CACHE,