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

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

Issue 461163002: Cleanup namespace usage in Source/core/modules/[mediasource/* to websockets/*] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 // 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"
11 11
12 namespace blink { 12 namespace blink {
13 class WebServiceWorkerProvider;
14 }
15
16 namespace blink {
17 13
18 class ExecutionContext; 14 class ExecutionContext;
15 class WebServiceWorkerProvider;
19 16
20 // This mainly exists to provide access to WebServiceWorkerProvider. 17 // This mainly exists to provide access to WebServiceWorkerProvider.
21 // Owned by Document (or WorkerClients). 18 // Owned by Document (or WorkerClients).
22 class ServiceWorkerContainerClient FINAL 19 class ServiceWorkerContainerClient FINAL
23 : public NoBaseWillBeGarbageCollectedFinalized<ServiceWorkerContainerClient> 20 : public NoBaseWillBeGarbageCollectedFinalized<ServiceWorkerContainerClient>
24 , public DocumentSupplement 21 , public DocumentSupplement
25 , public WillBeHeapSupplement<WorkerClients> { 22 , public WillBeHeapSupplement<WorkerClients> {
26 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerContainerClient); 23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerContainerClient);
27 WTF_MAKE_NONCOPYABLE(ServiceWorkerContainerClient); 24 WTF_MAKE_NONCOPYABLE(ServiceWorkerContainerClient);
28 public: 25 public:
29 static PassOwnPtrWillBeRawPtr<ServiceWorkerContainerClient> create(PassOwnPt r<blink::WebServiceWorkerProvider>); 26 static PassOwnPtrWillBeRawPtr<ServiceWorkerContainerClient> create(PassOwnPt r<WebServiceWorkerProvider>);
30 virtual ~ServiceWorkerContainerClient(); 27 virtual ~ServiceWorkerContainerClient();
31 28
32 blink::WebServiceWorkerProvider* provider() { return m_provider.get(); } 29 WebServiceWorkerProvider* provider() { return m_provider.get(); }
33 30
34 static const char* supplementName(); 31 static const char* supplementName();
35 static ServiceWorkerContainerClient* from(ExecutionContext*); 32 static ServiceWorkerContainerClient* from(ExecutionContext*);
36 33
37 virtual void trace(Visitor* visitor) OVERRIDE 34 virtual void trace(Visitor* visitor) OVERRIDE
38 { 35 {
39 DocumentSupplement::trace(visitor); 36 DocumentSupplement::trace(visitor);
40 WillBeHeapSupplement<WorkerClients>::trace(visitor); 37 WillBeHeapSupplement<WorkerClients>::trace(visitor);
41 } 38 }
42 39
43 protected: 40 protected:
44 explicit ServiceWorkerContainerClient(PassOwnPtr<blink::WebServiceWorkerProv ider>); 41 explicit ServiceWorkerContainerClient(PassOwnPtr<WebServiceWorkerProvider>);
45 42
46 OwnPtr<blink::WebServiceWorkerProvider> m_provider; 43 OwnPtr<WebServiceWorkerProvider> m_provider;
47 }; 44 };
48 45
49 void provideServiceWorkerContainerClientToWorker(WorkerClients*, PassOwnPtr<blin k::WebServiceWorkerProvider>); 46 void provideServiceWorkerContainerClientToWorker(WorkerClients*, PassOwnPtr<WebS erviceWorkerProvider>);
50 47
51 } // namespace blink 48 } // namespace blink
52 49
53 #endif // ServiceWorkerContainerClient_h 50 #endif // ServiceWorkerContainerClient_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.h ('k') | Source/modules/serviceworkers/ServiceWorkerError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698