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

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

Issue 2734783002: Fix oninstall-script tests for service worker (Closed)
Patch Set: delete tests Created 3 years, 9 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 WorkerClients*); 113 WorkerClients*);
114 void importScripts(const Vector<String>& urls, ExceptionState&) override; 114 void importScripts(const Vector<String>& urls, ExceptionState&) override;
115 CachedMetadataHandler* createWorkerScriptCachedMetadataHandler( 115 CachedMetadataHandler* createWorkerScriptCachedMetadataHandler(
116 const KURL& scriptURL, 116 const KURL& scriptURL,
117 const Vector<char>* metaData) override; 117 const Vector<char>* metaData) override;
118 void exceptionThrown(ErrorEvent*) override; 118 void exceptionThrown(ErrorEvent*) override;
119 119
120 Member<ServiceWorkerClients> m_clients; 120 Member<ServiceWorkerClients> m_clients;
121 Member<ServiceWorkerRegistration> m_registration; 121 Member<ServiceWorkerRegistration> m_registration;
122 bool m_didEvaluateScript; 122 bool m_didEvaluateScript;
123 bool m_hadErrorInTopLevelEventHandler;
124 unsigned m_eventNestingLevel;
125 size_t m_scriptCount; 123 size_t m_scriptCount;
126 size_t m_scriptTotalSize; 124 size_t m_scriptTotalSize;
127 size_t m_scriptCachedMetadataTotalSize; 125 size_t m_scriptCachedMetadataTotalSize;
128 }; 126 };
129 127
130 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, 128 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope,
131 ExecutionContext, 129 ExecutionContext,
132 context, 130 context,
133 context->isServiceWorkerGlobalScope(), 131 context->isServiceWorkerGlobalScope(),
134 context.isServiceWorkerGlobalScope()); 132 context.isServiceWorkerGlobalScope());
135 133
136 } // namespace blink 134 } // namespace blink
137 135
138 #endif // ServiceWorkerGlobalScope_h 136 #endif // ServiceWorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698