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

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

Issue 739383002: Don't drop messages/events send to a service worker that is stopping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@termnate_sw
Patch Set: address nit Created 6 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); 255 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker);
256 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); 256 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability);
257 typedef ServiceWorkerVersion self; 257 typedef ServiceWorkerVersion self;
258 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; 258 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap;
259 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; 259 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap;
260 260
261 ~ServiceWorkerVersion() override; 261 ~ServiceWorkerVersion() override;
262 262
263 // EmbeddedWorkerInstance::Listener overrides: 263 // EmbeddedWorkerInstance::Listener overrides:
264 void OnStarted() override; 264 void OnStarted() override;
265 void OnStopped() override; 265 void OnStopped(EmbeddedWorkerInstance::Status old_status) override;
266 void OnReportException(const base::string16& error_message, 266 void OnReportException(const base::string16& error_message,
267 int line_number, 267 int line_number,
268 int column_number, 268 int column_number,
269 const GURL& source_url) override; 269 const GURL& source_url) override;
270 void OnReportConsoleMessage(int source_identifier, 270 void OnReportConsoleMessage(int source_identifier,
271 int message_level, 271 int message_level,
272 const base::string16& message, 272 const base::string16& message,
273 int line_number, 273 int line_number,
274 const GURL& source_url) override; 274 const GURL& source_url) override;
275 bool OnMessageReceived(const IPC::Message& message) override; 275 bool OnMessageReceived(const IPC::Message& message) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bool is_doomed_; 336 bool is_doomed_;
337 337
338 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 338 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
339 339
340 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 340 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
341 }; 341 };
342 342
343 } // namespace content 343 } // namespace content
344 344
345 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 345 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_browsertest.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698