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

Side by Side Diff: webkit/common/resource_type.cc

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/common/resource_type.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/common/resource_type.h" 5 #include "webkit/common/resource_type.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using WebKit::WebURLRequest; 9 using blink::WebURLRequest;
10 10
11 // static 11 // static
12 ResourceType::Type ResourceType::FromTargetType( 12 ResourceType::Type ResourceType::FromTargetType(
13 WebURLRequest::TargetType type) { 13 WebURLRequest::TargetType type) {
14 switch (type) { 14 switch (type) {
15 case WebURLRequest::TargetIsMainFrame: 15 case WebURLRequest::TargetIsMainFrame:
16 return ResourceType::MAIN_FRAME; 16 return ResourceType::MAIN_FRAME;
17 case WebURLRequest::TargetIsSubframe: 17 case WebURLRequest::TargetIsSubframe:
18 return ResourceType::SUB_FRAME; 18 return ResourceType::SUB_FRAME;
19 case WebURLRequest::TargetIsSubresource: 19 case WebURLRequest::TargetIsSubresource:
(...skipping 18 matching lines...) Expand all
38 return ResourceType::PREFETCH; 38 return ResourceType::PREFETCH;
39 case WebURLRequest::TargetIsFavicon: 39 case WebURLRequest::TargetIsFavicon:
40 return ResourceType::FAVICON; 40 return ResourceType::FAVICON;
41 case WebURLRequest::TargetIsXHR: 41 case WebURLRequest::TargetIsXHR:
42 return ResourceType::XHR; 42 return ResourceType::XHR;
43 default: 43 default:
44 NOTREACHED(); 44 NOTREACHED();
45 return ResourceType::SUB_RESOURCE; 45 return ResourceType::SUB_RESOURCE;
46 } 46 }
47 } 47 }
OLDNEW
« no previous file with comments | « webkit/common/resource_type.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698