| Index: chrome/browser/predictors/resource_prefetch_predictor.h
|
| diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
|
| index 3c055a331f4fbdd20af1e9c375627e98caf2c13e..1b0253e178736750b56c737905c5443ca14dab51 100644
|
| --- a/chrome/browser/predictors/resource_prefetch_predictor.h
|
| +++ b/chrome/browser/predictors/resource_prefetch_predictor.h
|
| @@ -90,6 +90,9 @@ class ResourcePrefetchPredictor
|
| bool was_cached;
|
| GURL redirect_url; // Empty unless request was redirected to a valid url.
|
|
|
| + bool has_validators;
|
| + bool always_revalidate;
|
| +
|
| // Initializes a |URLRequestSummary| from a |URLRequest| response.
|
| // Returns true for success.
|
| static bool SummarizeResponse(const net::URLRequest& request,
|
| @@ -106,6 +109,12 @@ class ResourcePrefetchPredictor
|
| static bool ShouldRecordResponse(net::URLRequest* response);
|
| static bool ShouldRecordRedirect(net::URLRequest* response);
|
|
|
| + // Determines the resource type from the declared one, falling back to MIME
|
| + // type detection when it is not explicit.
|
| + static content::ResourceType GetResourceType(
|
| + content::ResourceType resource_type,
|
| + const std::string& mime_type);
|
| +
|
| // Determines the ResourceType from the mime type, defaulting to the
|
| // |fallback| if the ResourceType could not be determined.
|
| static content::ResourceType GetResourceTypeFromMimeType(
|
|
|