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

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

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 public: 74 public:
75 static ServiceWorkerGlobalScopeProxy* create(WebEmbeddedWorkerImpl&, 75 static ServiceWorkerGlobalScopeProxy* create(WebEmbeddedWorkerImpl&,
76 Document&, 76 Document&,
77 WebServiceWorkerContextClient&); 77 WebServiceWorkerContextClient&);
78 ~ServiceWorkerGlobalScopeProxy() override; 78 ~ServiceWorkerGlobalScopeProxy() override;
79 79
80 // WebServiceWorkerContextProxy overrides: 80 // WebServiceWorkerContextProxy overrides:
81 void setRegistration( 81 void setRegistration(
82 std::unique_ptr<WebServiceWorkerRegistration::Handle>) override; 82 std::unique_ptr<WebServiceWorkerRegistration::Handle>) override;
83 void dispatchActivateEvent(int) override; 83 void dispatchActivateEvent(int) override;
84 void dispatchBackgroundFetchAbortEvent(int, const WebString& tag) override;
85 void dispatchBackgroundFetchClickEvent(int,
86 const WebString& tag,
87 BackgroundFetchState) override;
84 void dispatchExtendableMessageEvent( 88 void dispatchExtendableMessageEvent(
85 int eventID, 89 int eventID,
86 const WebString& message, 90 const WebString& message,
87 const WebSecurityOrigin& sourceOrigin, 91 const WebSecurityOrigin& sourceOrigin,
88 WebMessagePortChannelArray, 92 WebMessagePortChannelArray,
89 const WebServiceWorkerClientInfo&) override; 93 const WebServiceWorkerClientInfo&) override;
90 void dispatchExtendableMessageEvent( 94 void dispatchExtendableMessageEvent(
91 int eventID, 95 int eventID,
92 const WebString& message, 96 const WebString& message,
93 const WebSecurityOrigin& sourceOrigin, 97 const WebSecurityOrigin& sourceOrigin,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; 173 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents;
170 174
171 WebServiceWorkerContextClient* m_client; 175 WebServiceWorkerContextClient* m_client;
172 176
173 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; 177 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope;
174 }; 178 };
175 179
176 } // namespace blink 180 } // namespace blink
177 181
178 #endif // ServiceWorkerGlobalScopeProxy_h 182 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698