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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 void OnFetchEventFinished(int request_id, 345 void OnFetchEventFinished(int request_id,
346 ServiceWorkerFetchEventResult result, 346 ServiceWorkerFetchEventResult result,
347 const ServiceWorkerResponse& response); 347 const ServiceWorkerResponse& response);
348 void OnSyncEventFinished(int request_id); 348 void OnSyncEventFinished(int request_id);
349 void OnNotificationClickEventFinished(int request_id); 349 void OnNotificationClickEventFinished(int request_id);
350 void OnPushEventFinished(int request_id, 350 void OnPushEventFinished(int request_id,
351 blink::WebServiceWorkerEventResult result); 351 blink::WebServiceWorkerEventResult result);
352 void OnGeofencingEventFinished(int request_id); 352 void OnGeofencingEventFinished(int request_id);
353 void OnCrossOriginConnectEventFinished(int request_id, 353 void OnCrossOriginConnectEventFinished(int request_id,
354 bool accept_connection); 354 bool accept_connection);
355 void OnOpenWindow(int request_id, const GURL& url, const GURL& referrer);
356 void DidOpenWindow(int request_id,
357 int render_process_id,
358 int render_frame_id);
359 void OnOpenWindowFinished(int request_id,
360 ServiceWorkerStatusCode status,
361 const ServiceWorkerClientInfo& client_info);
362
355 void OnPostMessageToDocument(int client_id, 363 void OnPostMessageToDocument(int client_id,
356 const base::string16& message, 364 const base::string16& message,
357 const std::vector<int>& sent_message_port_ids); 365 const std::vector<int>& sent_message_port_ids);
358 void OnFocusClient(int request_id, int client_id); 366 void OnFocusClient(int request_id, int client_id);
359 void OnSkipWaiting(int request_id); 367 void OnSkipWaiting(int request_id);
368 void OnFocusClientFinished(int request_id, bool result);
360 369
361 void OnFocusClientFinished(int request_id, bool result);
362 void DidSkipWaiting(int request_id); 370 void DidSkipWaiting(int request_id);
363 void DidGetClientInfo(int client_id, 371 void DidGetClientInfo(int client_id,
364 scoped_refptr<GetClientDocumentsCallback> callback, 372 scoped_refptr<GetClientDocumentsCallback> callback,
365 ServiceWorkerStatusCode status, 373 ServiceWorkerStatusCode status,
366 const ServiceWorkerClientInfo& info); 374 const ServiceWorkerClientInfo& info);
375
367 void ScheduleStopWorker(); 376 void ScheduleStopWorker();
368 void StopWorkerIfIdle(); 377 void StopWorkerIfIdle();
369 bool HasInflightRequests() const; 378 bool HasInflightRequests() const;
370 379
371 void DoomInternal(); 380 void DoomInternal();
372 381
373 const int64 version_id_; 382 const int64 version_id_;
374 int64 registration_id_; 383 int64 registration_id_;
375 GURL script_url_; 384 GURL script_url_;
376 GURL scope_; 385 GURL scope_;
(...skipping 14 matching lines...) Expand all
391 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_; 400 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
392 IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_; 401 IDMap<StatusCallback, IDMapOwnPointer> geofencing_callbacks_;
393 IDMap<GetClientInfoCallback, IDMapOwnPointer> get_client_info_callbacks_; 402 IDMap<GetClientInfoCallback, IDMapOwnPointer> get_client_info_callbacks_;
394 IDMap<CrossOriginConnectCallback, IDMapOwnPointer> 403 IDMap<CrossOriginConnectCallback, IDMapOwnPointer>
395 cross_origin_connect_callbacks_; 404 cross_origin_connect_callbacks_;
396 405
397 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_; 406 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_;
398 407
399 ControlleeMap controllee_map_; 408 ControlleeMap controllee_map_;
400 ControlleeByIDMap controllee_by_id_; 409 ControlleeByIDMap controllee_by_id_;
410 // Will be null while shutting down.
401 base::WeakPtr<ServiceWorkerContextCore> context_; 411 base::WeakPtr<ServiceWorkerContextCore> context_;
402 ObserverList<Listener> listeners_; 412 ObserverList<Listener> listeners_;
403 ServiceWorkerScriptCacheMap script_cache_map_; 413 ServiceWorkerScriptCacheMap script_cache_map_;
404 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_; 414 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_;
405 base::OneShotTimer<ServiceWorkerVersion> update_timer_; 415 base::OneShotTimer<ServiceWorkerVersion> update_timer_;
406 bool is_doomed_; 416 bool is_doomed_;
407 std::vector<int> pending_skip_waiting_requests_; 417 std::vector<int> pending_skip_waiting_requests_;
408 bool skip_waiting_; 418 bool skip_waiting_;
409 419
410 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 420 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
411 421
412 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 422 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
413 }; 423 };
414 424
415 } // namespace content 425 } // namespace content
416 426
417 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 427 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698