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

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

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS6 Created 4 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 29 matching lines...) Expand all
40 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ConsoleMessage; 44 class ConsoleMessage;
45 class Document; 45 class Document;
46 class ServiceWorkerGlobalScope; 46 class ServiceWorkerGlobalScope;
47 class WebEmbeddedWorkerImpl; 47 class WebEmbeddedWorkerImpl;
48 class WebServiceWorkerContextClient; 48 class WebServiceWorkerContextClient;
49 class WebServiceWorkerRequest; 49 class WebServiceWorkerRequest;
50 struct WebSyncRegistration; 50 struct WebSyncRegistration;
iclelland 2016/03/11 14:50:12 Not needed anymore
jkarlin 2016/03/15 12:50:16 Done.
51 51
52 // This class is created and destructed on the main thread, but live most 52 // This class is created and destructed on the main thread, but live most
53 // of its time as a resident of the worker thread. 53 // of its time as a resident of the worker thread.
54 // All methods other than its ctor/dtor are called on the worker thread. 54 // All methods other than its ctor/dtor are called on the worker thread.
55 // 55 //
56 // This implements WebServiceWorkerContextProxy, which connects ServiceWorker's 56 // This implements WebServiceWorkerContextProxy, which connects ServiceWorker's
57 // WorkerGlobalScope and embedder/chrome, and implements ServiceWorker-specific 57 // WorkerGlobalScope and embedder/chrome, and implements ServiceWorker-specific
58 // events/upcall methods that are to be called by embedder/chromium, 58 // events/upcall methods that are to be called by embedder/chromium,
59 // e.g. onfetch. 59 // e.g. onfetch.
60 // 60 //
(...skipping 17 matching lines...) Expand all
78 void dispatchExtendableMessageEvent(int, const WebString& message, const Web MessagePortChannelArray&) override; 78 void dispatchExtendableMessageEvent(int, const WebString& message, const Web MessagePortChannelArray&) override;
79 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; 79 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override;
80 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ; 80 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ;
81 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r egionID, const WebCircularGeofencingRegion&) override; 81 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r egionID, const WebCircularGeofencingRegion&) override;
82 void dispatchInstallEvent(int) override; 82 void dispatchInstallEvent(int) override;
83 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan nelArray&) override; 83 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan nelArray&) override;
84 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override; 84 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override;
85 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override; 85 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override;
86 void dispatchPushEvent(int, const WebString& data) override; 86 void dispatchPushEvent(int, const WebString& data) override;
87 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; 87 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c onst WebURL& targetURL, const WebString& origin, WebServicePortID) override;
88 void dispatchSyncEvent(int, const WebSyncRegistration&, LastChanceOption) ov erride; 88 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override ;
89 89
90 // WorkerReportingProxy overrides: 90 // WorkerReportingProxy overrides:
91 void reportException(const String& errorMessage, int lineNumber, int columnN umber, const String& sourceURL, int exceptionId) override; 91 void reportException(const String& errorMessage, int lineNumber, int columnN umber, const String& sourceURL, int exceptionId) override;
92 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; 92 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override;
93 void postMessageToPageInspector(const String&) override; 93 void postMessageToPageInspector(const String&) override;
94 void postWorkerConsoleAgentEnabled() override { } 94 void postWorkerConsoleAgentEnabled() override { }
95 void didEvaluateWorkerScript(bool success) override; 95 void didEvaluateWorkerScript(bool success) override;
96 void didInitializeWorkerContext() override; 96 void didInitializeWorkerContext() override;
97 void workerGlobalScopeStarted(WorkerGlobalScope*) override; 97 void workerGlobalScopeStarted(WorkerGlobalScope*) override;
98 void workerGlobalScopeClosed() override; 98 void workerGlobalScopeClosed() override;
(...skipping 24 matching lines...) Expand all
123 RawPtrWillBeMember<Document> m_document; 123 RawPtrWillBeMember<Document> m_document;
124 124
125 WebServiceWorkerContextClient* m_client; 125 WebServiceWorkerContextClient* m_client;
126 126
127 RawPtrWillBeMember<ServiceWorkerGlobalScope> m_workerGlobalScope; 127 RawPtrWillBeMember<ServiceWorkerGlobalScope> m_workerGlobalScope;
128 }; 128 };
129 129
130 } // namespace blink 130 } // namespace blink
131 131
132 #endif // ServiceWorkerGlobalScopeProxy_h 132 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698