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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/html/HTMLTrackElement.h" | 27 #include "core/html/HTMLTrackElement.h" |
28 | 28 |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "bindings/v8/ExceptionStatePlaceholder.h" | 30 #include "bindings/v8/ExceptionStatePlaceholder.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/frame/csp/ContentSecurityPolicy.h" | 32 #include "core/frame/csp/ContentSecurityPolicy.h" |
33 #include "core/html/HTMLMediaElement.h" | 33 #include "core/html/HTMLMediaElement.h" |
34 #include "platform/Logging.h" | 34 #include "platform/Logging.h" |
35 | 35 |
36 using namespace std; | |
37 | |
38 namespace WebCore { | 36 namespace WebCore { |
39 | 37 |
40 using namespace HTMLNames; | 38 using namespace HTMLNames; |
41 | 39 |
42 #if !LOG_DISABLED | 40 #if !LOG_DISABLED |
43 static String urlForLoggingTrack(const KURL& url) | 41 static String urlForLoggingTrack(const KURL& url) |
44 { | 42 { |
45 static const unsigned maximumURLLengthForLogging = 128; | 43 static const unsigned maximumURLLengthForLogging = 128; |
46 | 44 |
47 if (url.string().length() < maximumURLLengthForLogging) | 45 if (url.string().length() < maximumURLLengthForLogging) |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 return 0; | 269 return 0; |
272 } | 270 } |
273 | 271 |
274 void HTMLTrackElement::trace(Visitor* visitor) | 272 void HTMLTrackElement::trace(Visitor* visitor) |
275 { | 273 { |
276 visitor->trace(m_track); | 274 visitor->trace(m_track); |
277 HTMLElement::trace(visitor); | 275 HTMLElement::trace(visitor); |
278 } | 276 } |
279 | 277 |
280 } | 278 } |
OLD | NEW |