| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef ServiceWorkerGlobalScopeProxy_h | 31 #ifndef ServiceWorkerGlobalScopeProxy_h |
| 32 #define ServiceWorkerGlobalScopeProxy_h | 32 #define ServiceWorkerGlobalScopeProxy_h |
| 33 | 33 |
| 34 #include "base/time/time.h" |
| 34 #include "core/workers/WorkerReportingProxy.h" | 35 #include "core/workers/WorkerReportingProxy.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "platform/heap/HeapAllocator.h" | 37 #include "platform/heap/HeapAllocator.h" |
| 37 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 38 #include "public/platform/WebString.h" | 39 #include "public/platform/WebString.h" |
| 39 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" | 40 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" |
| 40 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 41 #include <memory> | 42 #include <memory> |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 int actionIndex, | 105 int actionIndex, |
| 105 const WebString& reply) override; | 106 const WebString& reply) override; |
| 106 void dispatchNotificationCloseEvent(int, | 107 void dispatchNotificationCloseEvent(int, |
| 107 const WebString& notificationID, | 108 const WebString& notificationID, |
| 108 const WebNotificationData&) override; | 109 const WebNotificationData&) override; |
| 109 void dispatchPushEvent(int, const WebString& data) override; | 110 void dispatchPushEvent(int, const WebString& data) override; |
| 110 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override; | 111 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override; |
| 111 void dispatchPaymentRequestEvent(int, | 112 void dispatchPaymentRequestEvent(int, |
| 112 const WebPaymentAppRequestData&) override; | 113 const WebPaymentAppRequestData&) override; |
| 113 bool hasFetchEventHandler() override; | 114 bool hasFetchEventHandler() override; |
| 115 void onNavigationPreloadSent(int fetchEventID, |
| 116 const WebURL&, |
| 117 base::TimeTicks sentTimestamp, |
| 118 base::Time sentWallTime) override; |
| 114 void onNavigationPreloadResponse( | 119 void onNavigationPreloadResponse( |
| 115 int fetchEventID, | 120 int fetchEventID, |
| 116 std::unique_ptr<WebURLResponse>, | 121 std::unique_ptr<WebURLResponse>, |
| 117 std::unique_ptr<WebDataConsumerHandle>) override; | 122 std::unique_ptr<WebDataConsumerHandle>) override; |
| 118 void onNavigationPreloadError( | 123 void onNavigationPreloadError( |
| 119 int fetchEventID, | 124 int fetchEventID, |
| 120 std::unique_ptr<WebServiceWorkerError>) override; | 125 std::unique_ptr<WebServiceWorkerError>) override; |
| 126 void onNavigationPreloadCompleted(int fetchEventID, |
| 127 int64_t encodedDataLength) override; |
| 121 | 128 |
| 122 // WorkerReportingProxy overrides: | 129 // WorkerReportingProxy overrides: |
| 123 void countFeature(UseCounter::Feature) override; | 130 void countFeature(UseCounter::Feature) override; |
| 124 void countDeprecation(UseCounter::Feature) override; | 131 void countDeprecation(UseCounter::Feature) override; |
| 125 void reportException(const String& errorMessage, | 132 void reportException(const String& errorMessage, |
| 126 std::unique_ptr<SourceLocation>, | 133 std::unique_ptr<SourceLocation>, |
| 127 int exceptionId) override; | 134 int exceptionId) override; |
| 128 void reportConsoleMessage(MessageSource, | 135 void reportConsoleMessage(MessageSource, |
| 129 MessageLevel, | 136 MessageLevel, |
| 130 const String& message, | 137 const String& message, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; | 177 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; |
| 171 | 178 |
| 172 WebServiceWorkerContextClient* m_client; | 179 WebServiceWorkerContextClient* m_client; |
| 173 | 180 |
| 174 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; | 181 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; |
| 175 }; | 182 }; |
| 176 | 183 |
| 177 } // namespace blink | 184 } // namespace blink |
| 178 | 185 |
| 179 #endif // ServiceWorkerGlobalScopeProxy_h | 186 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |