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

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

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 ServiceWorkerMetrics::Site site_for_uma_; 738 ServiceWorkerMetrics::Site site_for_uma_;
739 739
740 Status status_ = NEW; 740 Status status_ = NEW;
741 std::unique_ptr<EmbeddedWorkerInstance> embedded_worker_; 741 std::unique_ptr<EmbeddedWorkerInstance> embedded_worker_;
742 std::vector<StatusCallback> start_callbacks_; 742 std::vector<StatusCallback> start_callbacks_;
743 std::vector<StatusCallback> stop_callbacks_; 743 std::vector<StatusCallback> stop_callbacks_;
744 std::vector<base::Closure> status_change_callbacks_; 744 std::vector<base::Closure> status_change_callbacks_;
745 745
746 // Holds in-flight requests, including requests due to outstanding push, 746 // Holds in-flight requests, including requests due to outstanding push,
747 // fetch, sync, etc. events. 747 // fetch, sync, etc. events.
748 IDMap<PendingRequest, IDMapOwnPointer> pending_requests_; 748 IDMap<std::unique_ptr<PendingRequest>> pending_requests_;
749 749
750 // Container for pending external requests for this service worker. 750 // Container for pending external requests for this service worker.
751 // (key, value): (request uuid, request id). 751 // (key, value): (request uuid, request id).
752 using RequestUUIDToRequestIDMap = std::map<std::string, int>; 752 using RequestUUIDToRequestIDMap = std::map<std::string, int>;
753 RequestUUIDToRequestIDMap external_request_uuid_to_request_id_; 753 RequestUUIDToRequestIDMap external_request_uuid_to_request_id_;
754 754
755 // Connected to ServiceWorkerContextClient while the worker is running. 755 // Connected to ServiceWorkerContextClient while the worker is running.
756 mojom::ServiceWorkerEventDispatcherPtr event_dispatcher_; 756 mojom::ServiceWorkerEventDispatcherPtr event_dispatcher_;
757 757
758 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_; 758 std::set<const ServiceWorkerURLRequestJob*> streaming_url_request_jobs_;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 862
863 // At this point |this| can have been deleted, so don't do anything other 863 // At this point |this| can have been deleted, so don't do anything other
864 // than returning. 864 // than returning.
865 865
866 return true; 866 return true;
867 } 867 }
868 868
869 } // namespace content 869 } // namespace content
870 870
871 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 871 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698