| Index: chrome/browser/extensions/api/web_request/web_request_api_helpers.h
|
| diff --git a/chrome/browser/extensions/api/web_request/web_request_api_helpers.h b/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
|
| index 4392540dc548422b96821daa539be49d7c796f33..98796578f164bfec90df1bf9902d3a27c4f61569 100644
|
| --- a/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
|
| +++ b/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
|
| @@ -21,6 +21,7 @@
|
| #include "net/base/net_log.h"
|
| #include "net/http/http_request_headers.h"
|
| #include "net/http/http_response_headers.h"
|
| +#include "webkit/glue/resource_type.h"
|
|
|
| namespace base {
|
| class ListValue;
|
| @@ -181,6 +182,20 @@ bool MergeOnAuthRequiredResponses(
|
| // Returns true if requests for |url| shall not be reported to extensions.
|
| bool HideRequestForURL(const GURL& url);
|
|
|
| +// Returns whether |type| is a ResourceType that is handled by the web request
|
| +// API.
|
| +bool IsRelevantResourceType(ResourceType::Type type);
|
| +
|
| +// Returns a string representation of |type| or |other| if |type| is not handled
|
| +// by the web request API.
|
| +const char* ResourceTypeToString(ResourceType::Type type);
|
| +
|
| +// Stores a |ResourceType::Type| representation in |type| if |type_str| is
|
| +// a resource type handled by the web request API. Returns true in case of
|
| +// success.
|
| +bool ParseResourceType(const std::string& type_str,
|
| + ResourceType::Type* type);
|
| +
|
| } // namespace extension_web_request_api_helpers
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_
|
|
|