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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/TextResource.cpp

Issue 2815053002: Rewrite references to "wtf/" to "platform/wtf/" in core/loader. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/StyleSheetResourceClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/loader/resource/TextResource.h" 5 #include "core/loader/resource/TextResource.h"
6 6
7 #include "core/html/parser/TextResourceDecoder.h" 7 #include "core/html/parser/TextResourceDecoder.h"
8 #include "platform/SharedBuffer.h" 8 #include "platform/SharedBuffer.h"
9 #include "wtf/text/StringBuilder.h" 9 #include "platform/wtf/text/StringBuilder.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 TextResource::TextResource(const ResourceRequest& resource_request, 13 TextResource::TextResource(const ResourceRequest& resource_request,
14 Resource::Type type, 14 Resource::Type type,
15 const ResourceLoaderOptions& options, 15 const ResourceLoaderOptions& options,
16 const String& mime_type, 16 const String& mime_type,
17 const String& charset) 17 const String& charset)
18 : Resource(resource_request, type, options), 18 : Resource(resource_request, type, options),
19 decoder_(TextResourceDecoder::Create(mime_type, charset)) {} 19 decoder_(TextResourceDecoder::Create(mime_type, charset)) {}
(...skipping 16 matching lines...) Expand all
36 size_t position = 0; 36 size_t position = 0;
37 while (size_t length = Data()->GetSomeData(segment, position)) { 37 while (size_t length = Data()->GetSomeData(segment, position)) {
38 builder.Append(decoder_->Decode(segment, length)); 38 builder.Append(decoder_->Decode(segment, length));
39 position += length; 39 position += length;
40 } 40 }
41 builder.Append(decoder_->Flush()); 41 builder.Append(decoder_->Flush());
42 return builder.ToString(); 42 return builder.ToString();
43 } 43 }
44 44
45 } // namespace blink 45 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/StyleSheetResourceClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698