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

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

Issue 1421783002: Oilpan: fix build after r355581. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo more droppage of transition types Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch); 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch);
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync); 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync);
89 89
90 DECLARE_VIRTUAL_TRACE(); 90 DECLARE_VIRTUAL_TRACE();
91 91
92 protected: 92 protected:
93 // EventTarget 93 // EventTarget
94 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; 94 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override;
95 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtr<Even tListener>, const EventListenerOptions&) override; 95 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override;
96 96
97 private: 97 private:
98 class SkipWaitingCallback; 98 class SkipWaitingCallback;
99 99
100 ServiceWorkerGlobalScope(const KURL&, const String& userAgent, ServiceWorker Thread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPt rWillBeRawPtr<WorkerClients>); 100 ServiceWorkerGlobalScope(const KURL&, const String& userAgent, ServiceWorker Thread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPt rWillBeRawPtr<WorkerClients>);
101 void importScripts(const Vector<String>& urls, ExceptionState&) override; 101 void importScripts(const Vector<String>& urls, ExceptionState&) override;
102 PassOwnPtrWillBeRawPtr<CachedMetadataHandler> createWorkerScriptCachedMetada taHandler(const KURL& scriptURL, const Vector<char>* metaData) override; 102 PassOwnPtrWillBeRawPtr<CachedMetadataHandler> createWorkerScriptCachedMetada taHandler(const KURL& scriptURL, const Vector<char>* metaData) override;
103 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip tCallStack>) override; 103 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip tCallStack>) override;
104 void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) override; 104 void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) override;
105 105
106 PersistentWillBeMember<ServiceWorkerClients> m_clients; 106 PersistentWillBeMember<ServiceWorkerClients> m_clients;
107 PersistentWillBeMember<ServiceWorkerRegistration> m_registration; 107 PersistentWillBeMember<ServiceWorkerRegistration> m_registration;
108 bool m_didEvaluateScript; 108 bool m_didEvaluateScript;
109 bool m_hadErrorInTopLevelEventHandler; 109 bool m_hadErrorInTopLevelEventHandler;
110 unsigned m_eventNestingLevel; 110 unsigned m_eventNestingLevel;
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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698