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

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

Issue 230083003: Oilpan: Move WorkerClients to the managed heap and trace its supplements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR comments and unbreak the non-oilpan build Created 6 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ServiceWorkerContainerClient_h 5 #ifndef ServiceWorkerContainerClient_h
6 #define ServiceWorkerContainerClient_h 6 #define ServiceWorkerContainerClient_h
7 7
8 #include "core/dom/DocumentSupplementable.h" 8 #include "core/dom/DocumentSupplementable.h"
9 #include "core/workers/WorkerClients.h" 9 #include "core/workers/WorkerClients.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 14 matching lines...) Expand all
25 WTF_MAKE_NONCOPYABLE(ServiceWorkerContainerClient); 25 WTF_MAKE_NONCOPYABLE(ServiceWorkerContainerClient);
26 public: 26 public:
27 static PassOwnPtr<ServiceWorkerContainerClient> create(PassOwnPtr<blink::Web ServiceWorkerProvider>); 27 static PassOwnPtr<ServiceWorkerContainerClient> create(PassOwnPtr<blink::Web ServiceWorkerProvider>);
28 virtual ~ServiceWorkerContainerClient(); 28 virtual ~ServiceWorkerContainerClient();
29 29
30 blink::WebServiceWorkerProvider* provider() { return m_provider.get(); } 30 blink::WebServiceWorkerProvider* provider() { return m_provider.get(); }
31 31
32 static const char* supplementName(); 32 static const char* supplementName();
33 static ServiceWorkerContainerClient* from(ExecutionContext*); 33 static ServiceWorkerContainerClient* from(ExecutionContext*);
34 34
35 virtual void trace(Visitor*) OVERRIDE 35 virtual void trace(Visitor*) OVERRIDE { }
36 {
37 // FIXME: Oilpan: Move WorkerClients to the managed heap before using th is trace method.
38 }
39 36
40 protected: 37 protected:
41 explicit ServiceWorkerContainerClient(PassOwnPtr<blink::WebServiceWorkerProv ider>); 38 explicit ServiceWorkerContainerClient(PassOwnPtr<blink::WebServiceWorkerProv ider>);
42 39
43 OwnPtr<blink::WebServiceWorkerProvider> m_provider; 40 OwnPtr<blink::WebServiceWorkerProvider> m_provider;
44 }; 41 };
45 42
46 void provideServiceWorkerContainerClientToWorker(WorkerClients*, PassOwnPtr<blin k::WebServiceWorkerProvider>); 43 void provideServiceWorkerContainerClientToWorker(WorkerClients*, PassOwnPtr<blin k::WebServiceWorkerProvider>);
47 44
48 } // namespace WebCore 45 } // namespace WebCore
49 46
50 #endif // ServiceWorkerContainerClient_h 47 #endif // ServiceWorkerContainerClient_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/LocalFileSystem.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698