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

Unified Diff: content/public/common/resource_type.h

Issue 370833002: Move resource_type.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix 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/public/child/resource_dispatcher_delegate.h ('k') | content/public/common/resource_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/resource_type.h
diff --git a/webkit/common/resource_type.h b/content/public/common/resource_type.h
similarity index 83%
rename from webkit/common/resource_type.h
rename to content/public/common/resource_type.h
index 4cfd0f6ee591bc8fa2da8db8df2f489b379602d5..6aec555d08045f1deb07842099033161b7c7e923 100644
--- a/webkit/common/resource_type.h
+++ b/content/public/common/resource_type.h
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_COMMON_RESOURCE_TYPE_H__
-#define WEBKIT_COMMON_RESOURCE_TYPE_H__
+#ifndef CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_
+#define CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_
-#include "base/basictypes.h"
+#include "base/macros.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
-#include "webkit/common/webkit_common_export.h"
-class ResourceType {
+namespace content {
+
+class CONTENT_EXPORT ResourceType {
public:
// Used in histograms, so please add new types at the end, and rename unused
// entries to RESOURCETYPE_UNUSED_0, etc...
@@ -35,6 +37,8 @@ class ResourceType {
// everytime.
};
+ static Type FromTargetType(blink::WebURLRequest::TargetType type);
+
static bool ValidType(int32 type) {
return type >= MAIN_FRAME && type < LAST_TYPE;
}
@@ -43,9 +47,6 @@ class ResourceType {
return static_cast<Type>(type);
}
- WEBKIT_COMMON_EXPORT static Type FromTargetType(
- blink::WebURLRequest::TargetType type);
-
static bool IsFrame(ResourceType::Type type) {
return type == MAIN_FRAME || type == SUB_FRAME;
}
@@ -69,8 +70,9 @@ class ResourceType {
}
private:
- // Don't instantiate this class.
- ResourceType();
- ~ResourceType();
+ DISALLOW_COPY_AND_ASSIGN(ResourceType);
};
-#endif // WEBKIT_COMMON_RESOURCE_TYPE_H__
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_
« no previous file with comments | « content/public/child/resource_dispatcher_delegate.h ('k') | content/public/common/resource_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698