| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved. |
| 3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2011, Code Aurora Forum. All rights reserved. | 4 * Copyright (C) 2011, Code Aurora Forum. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/frame/csp/ContentSecurityPolicy.h" | 49 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 50 #include "core/inspector/ConsoleMessage.h" | 50 #include "core/inspector/ConsoleMessage.h" |
| 51 #include "core/loader/ThreadableLoader.h" | 51 #include "core/loader/ThreadableLoader.h" |
| 52 #include "core/probe/CoreProbes.h" | 52 #include "core/probe/CoreProbes.h" |
| 53 #include "modules/eventsource/EventSourceInit.h" | 53 #include "modules/eventsource/EventSourceInit.h" |
| 54 #include "platform/HTTPNames.h" | 54 #include "platform/HTTPNames.h" |
| 55 #include "platform/loader/fetch/ResourceError.h" | 55 #include "platform/loader/fetch/ResourceError.h" |
| 56 #include "platform/loader/fetch/ResourceRequest.h" | 56 #include "platform/loader/fetch/ResourceRequest.h" |
| 57 #include "platform/loader/fetch/ResourceResponse.h" | 57 #include "platform/loader/fetch/ResourceResponse.h" |
| 58 #include "platform/weborigin/SecurityOrigin.h" | 58 #include "platform/weborigin/SecurityOrigin.h" |
| 59 #include "platform/wtf/text/StringBuilder.h" |
| 59 #include "public/platform/WebURLRequest.h" | 60 #include "public/platform/WebURLRequest.h" |
| 60 #include "wtf/text/StringBuilder.h" | |
| 61 | 61 |
| 62 namespace blink { | 62 namespace blink { |
| 63 | 63 |
| 64 const unsigned long long EventSource::kDefaultReconnectDelay = 3000; | 64 const unsigned long long EventSource::kDefaultReconnectDelay = 3000; |
| 65 | 65 |
| 66 inline EventSource::EventSource(ExecutionContext* context, | 66 inline EventSource::EventSource(ExecutionContext* context, |
| 67 const KURL& url, | 67 const KURL& url, |
| 68 const EventSourceInit& event_source_init) | 68 const EventSourceInit& event_source_init) |
| 69 : ContextLifecycleObserver(context), | 69 : ContextLifecycleObserver(context), |
| 70 url_(url), | 70 url_(url), |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 | 376 |
| 377 DEFINE_TRACE(EventSource) { | 377 DEFINE_TRACE(EventSource) { |
| 378 visitor->Trace(parser_); | 378 visitor->Trace(parser_); |
| 379 visitor->Trace(loader_); | 379 visitor->Trace(loader_); |
| 380 EventTargetWithInlineData::Trace(visitor); | 380 EventTargetWithInlineData::Trace(visitor); |
| 381 ContextLifecycleObserver::Trace(visitor); | 381 ContextLifecycleObserver::Trace(visitor); |
| 382 EventSourceParser::Client::Trace(visitor); | 382 EventSourceParser::Client::Trace(visitor); |
| 383 } | 383 } |
| 384 | 384 |
| 385 } // namespace blink | 385 } // namespace blink |
| OLD | NEW |