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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.h

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc eptionState&); 71 ScriptPromise fetch(ScriptState*, const RequestInfo&, const Dictionary&, Exc eptionState&);
72 72
73 void close(ExceptionState&); 73 void close(ExceptionState&);
74 74
75 ScriptPromise skipWaiting(ScriptState*); 75 ScriptPromise skipWaiting(ScriptState*);
76 76
77 void setRegistration(WebServiceWorkerRegistration*); 77 void setRegistration(WebServiceWorkerRegistration*);
78 78
79 // EventTarget 79 // EventTarget
80 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene r>, bool useCapture = false) override; 80 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr< EventListener>, bool useCapture = false) override;
81 const AtomicString& interfaceName() const override; 81 const AtomicString& interfaceName() const override;
82 82
83 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve r*); 83 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve r*);
84 84
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(install);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate); 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate);
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch); 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch);
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
89 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync); 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync);
90 90
(...skipping 20 matching lines...) Expand all
111 size_t m_scriptCount; 111 size_t m_scriptCount;
112 size_t m_scriptTotalSize; 112 size_t m_scriptTotalSize;
113 size_t m_scriptCachedMetadataTotalSize; 113 size_t m_scriptCachedMetadataTotalSize;
114 }; 114 };
115 115
116 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context-> isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); 116 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context-> isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope());
117 117
118 } // namespace blink 118 } // namespace blink
119 119
120 #endif // ServiceWorkerGlobalScope_h 120 #endif // ServiceWorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698