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

Side by Side Diff: content/browser/service_worker/embedded_worker_instance.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_EMBEDDED_WORKER_INSTANCE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 STOPPED, 43 STOPPED,
44 STARTING, 44 STARTING,
45 RUNNING, 45 RUNNING,
46 STOPPING, 46 STOPPING,
47 }; 47 };
48 48
49 class Listener { 49 class Listener {
50 public: 50 public:
51 virtual ~Listener() {} 51 virtual ~Listener() {}
52 virtual void OnStarted() {} 52 virtual void OnStarted() {}
53 virtual void OnStopped() {} 53 virtual void OnStopped(Status old_status) {}
54 virtual void OnPausedAfterDownload() {} 54 virtual void OnPausedAfterDownload() {}
55 virtual void OnReportException(const base::string16& error_message, 55 virtual void OnReportException(const base::string16& error_message,
56 int line_number, 56 int line_number,
57 int column_number, 57 int column_number,
58 const GURL& source_url) {} 58 const GURL& source_url) {}
59 virtual void OnReportConsoleMessage(int source_identifier, 59 virtual void OnReportConsoleMessage(int source_identifier,
60 int message_level, 60 int message_level,
61 const base::string16& message, 61 const base::string16& message,
62 int line_number, 62 int line_number,
63 const GURL& source_url) {} 63 const GURL& source_url) {}
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ListenerList listener_list_; 195 ListenerList listener_list_;
196 196
197 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; 197 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); 199 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance);
200 }; 200 };
201 201
202 } // namespace content 202 } // namespace content
203 203
204 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 204 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698