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

Side by Side Diff: third_party/WebKit/Source/modules/eventsource/EventSourceParser.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/eventsource/EventSourceParser.h" 5 #include "modules/eventsource/EventSourceParser.h"
6 6
7 #include "core/EventTypeNames.h" 7 #include "core/EventTypeNames.h"
8 #include "modules/eventsource/EventSource.h" 8 #include "modules/eventsource/EventSource.h"
9 #include "wtf/ASCIICType.h" 9 #include "platform/wtf/ASCIICType.h"
10 #include "wtf/Assertions.h" 10 #include "platform/wtf/Assertions.h"
11 #include "wtf/NotFound.h" 11 #include "platform/wtf/NotFound.h"
12 #include "wtf/StdLibExtras.h" 12 #include "platform/wtf/StdLibExtras.h"
13 #include "wtf/text/TextEncoding.h" 13 #include "platform/wtf/text/TextEncoding.h"
14 #include "wtf/text/TextEncodingRegistry.h" 14 #include "platform/wtf/text/TextEncodingRegistry.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 EventSourceParser::EventSourceParser(const AtomicString& last_event_id, 18 EventSourceParser::EventSourceParser(const AtomicString& last_event_id,
19 Client* client) 19 Client* client)
20 : id_(last_event_id), 20 : id_(last_event_id),
21 last_event_id_(last_event_id), 21 last_event_id_(last_event_id),
22 client_(client), 22 client_(client),
23 codec_(NewTextCodec(UTF8Encoding())) {} 23 codec_(NewTextCodec(UTF8Encoding())) {}
24 24
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 String EventSourceParser::FromUTF8(const char* bytes, size_t size) { 128 String EventSourceParser::FromUTF8(const char* bytes, size_t size) {
129 return codec_->Decode(bytes, size, WTF::kDataEOF); 129 return codec_->Decode(bytes, size, WTF::kDataEOF);
130 } 130 }
131 131
132 DEFINE_TRACE(EventSourceParser) { 132 DEFINE_TRACE(EventSourceParser) {
133 visitor->Trace(client_); 133 visitor->Trace(client_);
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698