Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: content/child/site_isolation_policy.h

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/child/site_isolation_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/site_isolation_policy.h
diff --git a/content/child/site_isolation_policy.h b/content/child/site_isolation_policy.h
index 9e594b77f26fb1468615f614875383c7f672dad6..f0842889b1b2d47fb971c2b7e576ce5c8a040b17 100644
--- a/content/child/site_isolation_policy.h
+++ b/content/child/site_isolation_policy.h
@@ -13,8 +13,7 @@
#include "base/strings/string_piece.h"
#include "content/common/content_export.h"
#include "content/public/common/resource_type.h"
-
-class GURL;
+#include "url/gurl.h"
namespace content {
@@ -55,7 +54,6 @@ struct ResourceResponseInfo;
// # of responses that are plausibly sniffed to be JavaScript.
struct SiteIsolationResponseMetaData {
-
enum CanonicalMimeType {
HTML = 0,
XML = 1,
@@ -69,7 +67,7 @@ struct SiteIsolationResponseMetaData {
std::string frame_origin;
GURL response_url;
- ResourceType::Type resource_type;
+ ResourceType resource_type;
CanonicalMimeType canonical_mime_type;
int http_status_code;
bool no_sniff;
@@ -86,7 +84,7 @@ class CONTENT_EXPORT SiteIsolationPolicy {
static linked_ptr<SiteIsolationResponseMetaData> OnReceivedResponse(
const GURL& frame_origin,
const GURL& response_url,
- ResourceType::Type resource_type,
+ ResourceType resource_type,
int origin_pid,
const ResourceResponseInfo& info);
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/child/site_isolation_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698