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

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

Issue 1406823002: Start of foreign fetch implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blank line Created 5 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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const blink::WebString& message, 150 const blink::WebString& message,
151 blink::WebMessagePortChannelArray* channels) override; 151 blink::WebMessagePortChannelArray* channels) override;
152 void focus(const blink::WebString& uuid, 152 void focus(const blink::WebString& uuid,
153 blink::WebServiceWorkerClientCallbacks*) override; 153 blink::WebServiceWorkerClientCallbacks*) override;
154 void navigate(const blink::WebString& uuid, 154 void navigate(const blink::WebString& uuid,
155 const blink::WebURL&, 155 const blink::WebURL&,
156 blink::WebServiceWorkerClientCallbacks*) override; 156 blink::WebServiceWorkerClientCallbacks*) override;
157 void skipWaiting( 157 void skipWaiting(
158 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; 158 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override;
159 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; 159 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override;
160 void registerForeignFetchScopes(
161 const blink::WebVector<blink::WebURL>& sub_scopes) override;
160 162
161 virtual void DispatchSyncEvent(const blink::WebSyncRegistration& registration, 163 virtual void DispatchSyncEvent(const blink::WebSyncRegistration& registration,
162 const SyncCallback& callback); 164 const SyncCallback& callback);
163 165
164 private: 166 private:
165 struct WorkerContextData; 167 struct WorkerContextData;
166 168
167 // Get routing_id for sending message to the ServiceWorkerVersion 169 // Get routing_id for sending message to the ServiceWorkerVersion
168 // in the browser process. 170 // in the browser process.
169 int GetRoutingID() const { return embedded_worker_id_; } 171 int GetRoutingID() const { return embedded_worker_id_; }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Initialized on the worker thread in workerContextStarted and 239 // Initialized on the worker thread in workerContextStarted and
238 // destructed on the worker thread in willDestroyWorkerContext. 240 // destructed on the worker thread in willDestroyWorkerContext.
239 scoped_ptr<WorkerContextData> context_; 241 scoped_ptr<WorkerContextData> context_;
240 242
241 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
242 }; 244 };
243 245
244 } // namespace content 246 } // namespace content
245 247
246 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 248 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698