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

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

Issue 1684783002: Rename ServiceProvider to InterfaceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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_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
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/id_map.h" 15 #include "base/id_map.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "content/child/webmessageportchannel_impl.h" 21 #include "content/child/webmessageportchannel_impl.h"
22 #include "content/common/service_worker/service_worker_types.h" 22 #include "content/common/service_worker/service_worker_types.h"
23 #include "content/public/common/service_worker_event_status.mojom.h" 23 #include "content/public/common/service_worker_event_status.mojom.h"
24 #include "ipc/ipc_listener.h" 24 #include "ipc/ipc_listener.h"
25 #include "mojo/shell/public/interfaces/service_provider.mojom.h" 25 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h" 29 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextClient.h"
30 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h" 30 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h"
31 #include "v8/include/v8.h" 31 #include "v8/include/v8.h"
32 32
33 namespace base { 33 namespace base {
34 class SingleThreadTaskRunner; 34 class SingleThreadTaskRunner;
35 class TaskRunner; 35 class TaskRunner;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ~ServiceWorkerContextClient() override; 80 ~ServiceWorkerContextClient() override;
81 81
82 void OnMessageReceived(int thread_id, 82 void OnMessageReceived(int thread_id,
83 int embedded_worker_id, 83 int embedded_worker_id,
84 const IPC::Message& message); 84 const IPC::Message& message);
85 85
86 // Called some time after the worker has started. Attempts to use the 86 // Called some time after the worker has started. Attempts to use the
87 // ServiceRegistry to connect to services before this method is called are 87 // ServiceRegistry to connect to services before this method is called are
88 // queued up and will resolve after this method is called. 88 // queued up and will resolve after this method is called.
89 void BindServiceRegistry( 89 void BindServiceRegistry(
90 mojo::InterfaceRequest<mojo::ServiceProvider> services, 90 mojo::InterfaceRequest<mojo::InterfaceProvider> services,
91 mojo::ServiceProviderPtr exposed_services); 91 mojo::InterfaceProviderPtr exposed_services);
92 92
93 // WebServiceWorkerContextClient overrides. 93 // WebServiceWorkerContextClient overrides.
94 blink::WebURL scope() const override; 94 blink::WebURL scope() const override;
95 void getClients(const blink::WebServiceWorkerClientQueryOptions&, 95 void getClients(const blink::WebServiceWorkerClientQueryOptions&,
96 blink::WebServiceWorkerClientsCallbacks*) override; 96 blink::WebServiceWorkerClientsCallbacks*) override;
97 void openWindow(const blink::WebURL&, 97 void openWindow(const blink::WebURL&,
98 blink::WebServiceWorkerClientCallbacks*) override; 98 blink::WebServiceWorkerClientCallbacks*) override;
99 void setCachedMetadata(const blink::WebURL&, 99 void setCachedMetadata(const blink::WebURL&,
100 const char* data, 100 const char* data,
101 size_t size) override; 101 size_t size) override;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Initialized on the worker thread in workerContextStarted and 262 // Initialized on the worker thread in workerContextStarted and
263 // destructed on the worker thread in willDestroyWorkerContext. 263 // destructed on the worker thread in willDestroyWorkerContext.
264 scoped_ptr<WorkerContextData> context_; 264 scoped_ptr<WorkerContextData> context_;
265 265
266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
267 }; 267 };
268 268
269 } // namespace content 269 } // namespace content
270 270
271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698