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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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 CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 27 matching lines...) Expand all
38 class TaskRunner; 38 class TaskRunner;
39 } 39 }
40 40
41 namespace blink { 41 namespace blink {
42 class WebDataConsumerHandle; 42 class WebDataConsumerHandle;
43 class WebDataSource; 43 class WebDataSource;
44 struct WebServiceWorkerClientQueryOptions; 44 struct WebServiceWorkerClientQueryOptions;
45 class WebServiceWorkerContextProxy; 45 class WebServiceWorkerContextProxy;
46 class WebServiceWorkerProvider; 46 class WebServiceWorkerProvider;
47 class WebServiceWorkerResponse; 47 class WebServiceWorkerResponse;
48 struct WebSyncRegistration;
49 } 48 }
50 49
51 namespace IPC { 50 namespace IPC {
52 class Message; 51 class Message;
53 } 52 }
54 53
55 namespace content { 54 namespace content {
56 55
57 struct PlatformNotificationData; 56 struct PlatformNotificationData;
58 struct PushEventPayload; 57 struct PushEventPayload;
59 struct ServiceWorkerClientInfo; 58 struct ServiceWorkerClientInfo;
60 class ServiceWorkerProviderContext; 59 class ServiceWorkerProviderContext;
61 class ServiceWorkerContextClient; 60 class ServiceWorkerContextClient;
62 class ThreadSafeSender; 61 class ThreadSafeSender;
63 class WebServiceWorkerRegistrationImpl;
64 class EmbeddedWorkerInstanceClientImpl; 62 class EmbeddedWorkerInstanceClientImpl;
65 63
66 // This class provides access to/from an ServiceWorker's WorkerGlobalScope. 64 // This class provides access to/from an ServiceWorker's WorkerGlobalScope.
67 // Unless otherwise noted, all methods are called on the worker thread. 65 // Unless otherwise noted, all methods are called on the worker thread.
68 class ServiceWorkerContextClient 66 class ServiceWorkerContextClient
69 : public blink::WebServiceWorkerContextClient { 67 : public blink::WebServiceWorkerContextClient {
70 public: 68 public:
71 using SyncCallback = 69 using SyncCallback =
72 base::Callback<void(blink::mojom::ServiceWorkerEventStatus, 70 base::Callback<void(blink::mojom::ServiceWorkerEventStatus,
73 base::Time /* dispatch_event_time */)>; 71 base::Time /* dispatch_event_time */)>;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // Initialized on the worker thread in workerContextStarted and 284 // Initialized on the worker thread in workerContextStarted and
287 // destructed on the worker thread in willDestroyWorkerContext. 285 // destructed on the worker thread in willDestroyWorkerContext.
288 std::unique_ptr<WorkerContextData> context_; 286 std::unique_ptr<WorkerContextData> context_;
289 287
290 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 288 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
291 }; 289 };
292 290
293 } // namespace content 291 } // namespace content
294 292
295 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 293 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698