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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: using namespace WebCore Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 30 matching lines...) Expand all
41 namespace blink { 41 namespace blink {
42 class WebURL; 42 class WebURL;
43 }; 43 };
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 class ExecutionContext; 47 class ExecutionContext;
48 class Response; 48 class Response;
49 class WorkerClients; 49 class WorkerClients;
50 50
51 class ServiceWorkerGlobalScopeClient : public Supplement<WorkerClients> { 51 class ServiceWorkerGlobalScopeClient : public WillBeHeapSupplement<WorkerClients > {
52 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeClient); 52 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeClient);
53 public: 53 public:
54 virtual ~ServiceWorkerGlobalScopeClient() { } 54 virtual ~ServiceWorkerGlobalScopeClient() { }
55 55
56 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*) = 0; 56 virtual void getClients(blink::WebServiceWorkerClientsCallbacks*) = 0;
57 virtual blink::WebURL scope() const = 0; 57 virtual blink::WebURL scope() const = 0;
58 58
59 virtual void didHandleActivateEvent(int eventID, blink::WebServiceWorkerEven tResult) = 0; 59 virtual void didHandleActivateEvent(int eventID, blink::WebServiceWorkerEven tResult) = 0;
60 virtual void didHandleInstallEvent(int installEventID, blink::WebServiceWork erEventResult) = 0; 60 virtual void didHandleInstallEvent(int installEventID, blink::WebServiceWork erEventResult) = 0;
61 // A null response means no valid response was provided by the service worke r, so fallback to native. 61 // A null response means no valid response was provided by the service worke r, so fallback to native.
62 virtual void didHandleFetchEvent(int fetchEventID, PassRefPtr<Response> = nu llptr) = 0; 62 virtual void didHandleFetchEvent(int fetchEventID, PassRefPtr<Response> = nu llptr) = 0;
63 virtual void didHandleSyncEvent(int syncEventID) = 0; 63 virtual void didHandleSyncEvent(int syncEventID) = 0;
64 64
65 static const char* supplementName(); 65 static const char* supplementName();
66 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*); 66 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);
67 67
68 protected: 68 protected:
69 ServiceWorkerGlobalScopeClient() { } 69 ServiceWorkerGlobalScopeClient() { }
70 }; 70 };
71 71
72 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtr<Se rviceWorkerGlobalScopeClient>); 72 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>);
73 73
74 } // namespace WebCore 74 } // namespace WebCore
75 75
76 #endif // ServiceWorkerGlobalScopeClient_h 76 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698