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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: rebase and include time.h in ServiceWorkerGlobalScopeProxy.* Created 3 years, 11 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 13 matching lines...) Expand all
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
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) override;
121 127
122 // WorkerReportingProxy overrides: 128 // WorkerReportingProxy overrides:
123 void countFeature(UseCounter::Feature) override; 129 void countFeature(UseCounter::Feature) override;
124 void countDeprecation(UseCounter::Feature) override; 130 void countDeprecation(UseCounter::Feature) override;
125 void reportException(const String& errorMessage, 131 void reportException(const String& errorMessage,
126 std::unique_ptr<SourceLocation>, 132 std::unique_ptr<SourceLocation>,
127 int exceptionId) override; 133 int exceptionId) override;
128 void reportConsoleMessage(MessageSource, 134 void reportConsoleMessage(MessageSource,
129 MessageLevel, 135 MessageLevel,
130 const String& message, 136 const String& message,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; 176 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents;
171 177
172 WebServiceWorkerContextClient* m_client; 178 WebServiceWorkerContextClient* m_client;
173 179
174 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; 180 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope;
175 }; 181 };
176 182
177 } // namespace blink 183 } // namespace blink
178 184
179 #endif // ServiceWorkerGlobalScopeProxy_h 185 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698