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

Unified Diff: trunk/src/webkit/common/resource_type.cc

Issue 19888003: Revert 212927 "Move webkitplatformsupport_impl and related from ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | « trunk/src/webkit/common/resource_type.h ('k') | trunk/src/webkit/common/webkit_common.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/webkit/common/resource_type.cc
===================================================================
--- trunk/src/webkit/common/resource_type.cc (revision 212931)
+++ trunk/src/webkit/common/resource_type.cc (working copy)
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/common/resource_type.h"
-
-#include "base/logging.h"
-
-using WebKit::WebURLRequest;
-
-// static
-ResourceType::Type ResourceType::FromTargetType(
- WebURLRequest::TargetType type) {
- switch (type) {
- case WebURLRequest::TargetIsMainFrame:
- return ResourceType::MAIN_FRAME;
- case WebURLRequest::TargetIsSubframe:
- return ResourceType::SUB_FRAME;
- case WebURLRequest::TargetIsSubresource:
- return ResourceType::SUB_RESOURCE;
- case WebURLRequest::TargetIsStyleSheet:
- return ResourceType::STYLESHEET;
- case WebURLRequest::TargetIsScript:
- return ResourceType::SCRIPT;
- case WebURLRequest::TargetIsFontResource:
- return ResourceType::FONT_RESOURCE;
- case WebURLRequest::TargetIsImage:
- return ResourceType::IMAGE;
- case WebURLRequest::TargetIsObject:
- return ResourceType::OBJECT;
- case WebURLRequest::TargetIsMedia:
- return ResourceType::MEDIA;
- case WebURLRequest::TargetIsWorker:
- return ResourceType::WORKER;
- case WebURLRequest::TargetIsSharedWorker:
- return ResourceType::SHARED_WORKER;
- case WebURLRequest::TargetIsPrefetch:
- return ResourceType::PREFETCH;
- case WebURLRequest::TargetIsFavicon:
- return ResourceType::FAVICON;
- case WebURLRequest::TargetIsXHR:
- return ResourceType::XHR;
- default:
- NOTREACHED();
- return ResourceType::SUB_RESOURCE;
- }
-}
« no previous file with comments | « trunk/src/webkit/common/resource_type.h ('k') | trunk/src/webkit/common/webkit_common.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698