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

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: Created 6 years, 1 month 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); 242 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker);
243 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); 243 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability);
244 typedef ServiceWorkerVersion self; 244 typedef ServiceWorkerVersion self;
245 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap; 245 typedef std::map<ServiceWorkerProviderHost*, int> ControlleeMap;
246 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap; 246 typedef IDMap<ServiceWorkerProviderHost> ControlleeByIDMap;
247 247
248 ~ServiceWorkerVersion() override; 248 ~ServiceWorkerVersion() override;
249 249
250 // EmbeddedWorkerInstance::Listener overrides: 250 // EmbeddedWorkerInstance::Listener overrides:
251 void OnStarted() override; 251 void OnStarted() override;
252 void OnStopped() override; 252 void OnStopped(EmbeddedWorkerInstance::Status old_status) override;
253 void OnReportException(const base::string16& error_message, 253 void OnReportException(const base::string16& error_message,
254 int line_number, 254 int line_number,
255 int column_number, 255 int column_number,
256 const GURL& source_url) override; 256 const GURL& source_url) override;
257 void OnReportConsoleMessage(int source_identifier, 257 void OnReportConsoleMessage(int source_identifier,
258 int message_level, 258 int message_level,
259 const base::string16& message, 259 const base::string16& message,
260 int line_number, 260 int line_number,
261 const GURL& source_url) override; 261 const GURL& source_url) override;
262 bool OnMessageReceived(const IPC::Message& message) override; 262 bool OnMessageReceived(const IPC::Message& message) override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 bool is_doomed_; 315 bool is_doomed_;
316 316
317 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 317 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 319 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
320 }; 320 };
321 321
322 } // namespace content 322 } // namespace content
323 323
324 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 324 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698