OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const IPC::Message& message); | 95 const IPC::Message& message); |
96 | 96 |
97 // WebServiceWorkerContextClient overrides. | 97 // WebServiceWorkerContextClient overrides. |
98 blink::WebURL Scope() const override; | 98 blink::WebURL Scope() const override; |
99 void GetClient( | 99 void GetClient( |
100 const blink::WebString&, | 100 const blink::WebString&, |
101 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 101 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; |
102 void GetClients( | 102 void GetClients( |
103 const blink::WebServiceWorkerClientQueryOptions&, | 103 const blink::WebServiceWorkerClientQueryOptions&, |
104 std::unique_ptr<blink::WebServiceWorkerClientsCallbacks>) override; | 104 std::unique_ptr<blink::WebServiceWorkerClientsCallbacks>) override; |
105 void OpenWindow( | 105 void OpenWindow(const blink::WebURL& redirect_url, |
106 const blink::WebURL&, | 106 const blink::WebURL& url, |
107 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 107 std::unique_ptr<blink::WebServiceWorkerClientCallbacks> |
| 108 callbacks) override; |
108 void SetCachedMetadata(const blink::WebURL&, | 109 void SetCachedMetadata(const blink::WebURL&, |
109 const char* data, | 110 const char* data, |
110 size_t size) override; | 111 size_t size) override; |
111 void ClearCachedMetadata(const blink::WebURL&) override; | 112 void ClearCachedMetadata(const blink::WebURL&) override; |
112 void WorkerReadyForInspection() override; | 113 void WorkerReadyForInspection() override; |
113 | 114 |
114 // Called on the main thread. | 115 // Called on the main thread. |
115 void WorkerContextFailedToStart() override; | 116 void WorkerContextFailedToStart() override; |
116 void WorkerScriptLoaded() override; | 117 void WorkerScriptLoaded() override; |
117 bool HasAssociatedRegistration() override; | 118 bool HasAssociatedRegistration() override; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Initialized on the worker thread in workerContextStarted and | 364 // Initialized on the worker thread in workerContextStarted and |
364 // destructed on the worker thread in willDestroyWorkerContext. | 365 // destructed on the worker thread in willDestroyWorkerContext. |
365 std::unique_ptr<WorkerContextData> context_; | 366 std::unique_ptr<WorkerContextData> context_; |
366 | 367 |
367 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 368 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
368 }; | 369 }; |
369 | 370 |
370 } // namespace content | 371 } // namespace content |
371 | 372 |
372 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 373 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |