OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // WorkerGlobalScope | 60 // WorkerGlobalScope |
61 virtual void stopFetch() override; | 61 virtual void stopFetch() override; |
62 virtual void didEvaluateWorkerScript() override; | 62 virtual void didEvaluateWorkerScript() override; |
63 | 63 |
64 // ServiceWorkerGlobalScope.idl | 64 // ServiceWorkerGlobalScope.idl |
65 ServiceWorkerClients* clients(); | 65 ServiceWorkerClients* clients(); |
66 String scope(ExecutionContext*); | 66 String scope(ExecutionContext*); |
67 | 67 |
68 CacheStorage* caches(ExecutionContext*); | 68 CacheStorage* caches(ExecutionContext*); |
69 | 69 |
70 ScriptPromise fetch(ScriptState*, Request*); | |
71 ScriptPromise fetch(ScriptState*, Request*, const Dictionary&); | 70 ScriptPromise fetch(ScriptState*, Request*, const Dictionary&); |
72 ScriptPromise fetch(ScriptState*, const String&); | |
73 ScriptPromise fetch(ScriptState*, const String&, const Dictionary&); | 71 ScriptPromise fetch(ScriptState*, const String&, const Dictionary&); |
74 | 72 |
75 void close(ExceptionState&); | 73 void close(ExceptionState&); |
76 | 74 |
77 // EventTarget | 75 // EventTarget |
78 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; | 76 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; |
79 virtual const AtomicString& interfaceName() const override; | 77 virtual const AtomicString& interfaceName() const override; |
80 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | 78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; |
81 | 79 |
82 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve
r*); | 80 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve
r*); |
(...skipping 15 matching lines...) Expand all Loading... |
98 OwnPtr<FetchManager> m_fetchManager; | 96 OwnPtr<FetchManager> m_fetchManager; |
99 PersistentWillBeMember<CacheStorage> m_caches; | 97 PersistentWillBeMember<CacheStorage> m_caches; |
100 bool m_didEvaluateScript; | 98 bool m_didEvaluateScript; |
101 bool m_hadErrorInTopLevelEventHandler; | 99 bool m_hadErrorInTopLevelEventHandler; |
102 unsigned m_eventNestingLevel; | 100 unsigned m_eventNestingLevel; |
103 }; | 101 }; |
104 | 102 |
105 } // namespace blink | 103 } // namespace blink |
106 | 104 |
107 #endif // ServiceWorkerGlobalScope_h | 105 #endif // ServiceWorkerGlobalScope_h |
OLD | NEW |