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

Side by Side Diff: content/child/service_worker/service_worker_network_provider.h

Issue 2396273002: ServiceWorker: Mojofication of ServiceWorkerDispatcherHost (Closed)
Patch Set: Removed GetWeakPtr and moved a method to private Created 4 years, 2 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 CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/service_worker/service_worker.mojom.h"
17 #include "content/common/service_worker/service_worker_types.h" 18 #include "content/common/service_worker/service_worker_types.h"
18 19
19 namespace blink { 20 namespace blink {
20 class WebDataSource; 21 class WebDataSource;
21 class WebLocalFrame; 22 class WebLocalFrame;
22 } // namespace blink 23 } // namespace blink
23 24
24 namespace content { 25 namespace content {
25 26
26 class ServiceWorkerProviderContext; 27 class ServiceWorkerProviderContext;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // This method is called for a provider that's associated with a 72 // This method is called for a provider that's associated with a
72 // running service worker script. The version_id indicates which 73 // running service worker script. The version_id indicates which
73 // ServiceWorkerVersion should be used. 74 // ServiceWorkerVersion should be used.
74 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id); 75 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id);
75 76
76 bool IsControlledByServiceWorker() const; 77 bool IsControlledByServiceWorker() const;
77 78
78 private: 79 private:
79 const int provider_id_; 80 const int provider_id_;
80 scoped_refptr<ServiceWorkerProviderContext> context_; 81 scoped_refptr<ServiceWorkerProviderContext> context_;
82 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_;
81 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); 83 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider);
82 }; 84 };
83 85
84 } // namespace content 86 } // namespace content
85 87
86 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 88 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698