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

Side by Side Diff: Source/core/xml/XMLHttpRequestUpload.cpp

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 25 matching lines...) Expand all
36 namespace WebCore { 36 namespace WebCore {
37 37
38 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) 38 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest)
39 : m_xmlHttpRequest(xmlHttpRequest) 39 : m_xmlHttpRequest(xmlHttpRequest)
40 { 40 {
41 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
42 } 42 }
43 43
44 const AtomicString& XMLHttpRequestUpload::interfaceName() const 44 const AtomicString& XMLHttpRequestUpload::interfaceName() const
45 { 45 {
46 return eventNames().interfaceForXMLHttpRequestUpload; 46 return EventTargetNames::XMLHttpRequestUpload;
47 } 47 }
48 48
49 ExecutionContext* XMLHttpRequestUpload::executionContext() const 49 ExecutionContext* XMLHttpRequestUpload::executionContext() const
50 { 50 {
51 return m_xmlHttpRequest->executionContext(); 51 return m_xmlHttpRequest->executionContext();
52 } 52 }
53 53
54 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(PassRefPtr<Event> event) 54 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(PassRefPtr<Event> event)
55 { 55 {
56 ASSERT(event->type() == EventTypeNames::load || event->type() == EventTypeNa mes::abort || event->type() == EventTypeNames::error || event->type() == EventTy peNames::timeout); 56 ASSERT(event->type() == EventTypeNames::load || event->type() == EventTypeNa mes::abort || event->type() == EventTypeNames::error || event->type() == EventTy peNames::timeout);
57 57
58 dispatchEvent(event); 58 dispatchEvent(event);
59 dispatchEvent(XMLHttpRequestProgressEvent::create(EventTypeNames::loadend)); 59 dispatchEvent(XMLHttpRequestProgressEvent::create(EventTypeNames::loadend));
60 } 60 }
61 61
62 62
63 63
64 } // namespace WebCore 64 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequestProgressEvent.h ('k') | Source/modules/device_orientation/DeviceMotionEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698