| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "core/frame/LocalFrame.h" | 47 #include "core/frame/LocalFrame.h" |
| 48 #include "core/frame/UseCounter.h" | 48 #include "core/frame/UseCounter.h" |
| 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 "modules/websockets/CloseEvent.h" | 51 #include "modules/websockets/CloseEvent.h" |
| 52 #include "platform/Histogram.h" | 52 #include "platform/Histogram.h" |
| 53 #include "platform/blob/BlobData.h" | 53 #include "platform/blob/BlobData.h" |
| 54 #include "platform/network/NetworkLog.h" | 54 #include "platform/network/NetworkLog.h" |
| 55 #include "platform/weborigin/KnownPorts.h" | 55 #include "platform/weborigin/KnownPorts.h" |
| 56 #include "platform/weborigin/SecurityOrigin.h" | 56 #include "platform/weborigin/SecurityOrigin.h" |
| 57 #include "platform/wtf/Assertions.h" |
| 58 #include "platform/wtf/HashSet.h" |
| 59 #include "platform/wtf/MathExtras.h" |
| 60 #include "platform/wtf/StdLibExtras.h" |
| 61 #include "platform/wtf/text/CString.h" |
| 62 #include "platform/wtf/text/StringBuilder.h" |
| 57 #include "public/platform/Platform.h" | 63 #include "public/platform/Platform.h" |
| 58 #include "public/platform/WebInsecureRequestPolicy.h" | 64 #include "public/platform/WebInsecureRequestPolicy.h" |
| 59 #include "wtf/Assertions.h" | |
| 60 #include "wtf/HashSet.h" | |
| 61 #include "wtf/MathExtras.h" | |
| 62 #include "wtf/StdLibExtras.h" | |
| 63 #include "wtf/text/CString.h" | |
| 64 #include "wtf/text/StringBuilder.h" | |
| 65 | 65 |
| 66 static const size_t kMaxByteSizeForHistogram = 100 * 1000 * 1000; | 66 static const size_t kMaxByteSizeForHistogram = 100 * 1000 * 1000; |
| 67 static const int32_t kBucketCountForMessageSizeHistogram = 50; | 67 static const int32_t kBucketCountForMessageSizeHistogram = 50; |
| 68 | 68 |
| 69 namespace blink { | 69 namespace blink { |
| 70 | 70 |
| 71 DOMWebSocket::EventQueue::EventQueue(EventTarget* target) | 71 DOMWebSocket::EventQueue::EventQueue(EventTarget* target) |
| 72 : state_(kActive), | 72 : state_(kActive), |
| 73 target_(target), | 73 target_(target), |
| 74 resume_timer_(TaskRunnerHelper::Get(TaskType::kWebSocket, | 74 resume_timer_(TaskRunnerHelper::Get(TaskType::kWebSocket, |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 | 865 |
| 866 DEFINE_TRACE(DOMWebSocket) { | 866 DEFINE_TRACE(DOMWebSocket) { |
| 867 visitor->Trace(channel_); | 867 visitor->Trace(channel_); |
| 868 visitor->Trace(event_queue_); | 868 visitor->Trace(event_queue_); |
| 869 WebSocketChannelClient::Trace(visitor); | 869 WebSocketChannelClient::Trace(visitor); |
| 870 EventTargetWithInlineData::Trace(visitor); | 870 EventTargetWithInlineData::Trace(visitor); |
| 871 SuspendableObject::Trace(visitor); | 871 SuspendableObject::Trace(visitor); |
| 872 } | 872 } |
| 873 | 873 |
| 874 } // namespace blink | 874 } // namespace blink |
| OLD | NEW |