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

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

Issue 2365053002: Notify ServiceWorkerContextWatcher about routing ids of ServiceWorkerVersion and their updates. (Closed)
Patch Set: rebase, rename Created 4 years, 2 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
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Add new values here. 73 // Add new values here.
74 STARTING_PHASE_MAX_VALUE, 74 STARTING_PHASE_MAX_VALUE,
75 }; 75 };
76 76
77 class Listener { 77 class Listener {
78 public: 78 public:
79 virtual ~Listener() {} 79 virtual ~Listener() {}
80 80
81 virtual void OnStarting() {} 81 virtual void OnStarting() {}
82 virtual void OnProcessAllocated() {} 82 virtual void OnProcessAllocated() {}
83 virtual void OnRegisteredToDevToolsManager() {}
83 virtual void OnStartWorkerMessageSent() {} 84 virtual void OnStartWorkerMessageSent() {}
84 virtual void OnThreadStarted() {} 85 virtual void OnThreadStarted() {}
85 virtual void OnStarted() {} 86 virtual void OnStarted() {}
86 87
87 virtual void OnStopping() {} 88 virtual void OnStopping() {}
88 // Received ACK from renderer that the worker context terminated. 89 // Received ACK from renderer that the worker context terminated.
89 virtual void OnStopped(EmbeddedWorkerStatus old_status) {} 90 virtual void OnStopped(EmbeddedWorkerStatus old_status) {}
90 // The browser-side IPC endpoint for communication with the worker died. 91 // The browser-side IPC endpoint for communication with the worker died.
91 virtual void OnDetached(EmbeddedWorkerStatus old_status) {} 92 virtual void OnDetached(EmbeddedWorkerStatus old_status) {}
92 virtual void OnScriptLoaded() {} 93 virtual void OnScriptLoaded() {}
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 base::TimeTicks step_time_; 329 base::TimeTicks step_time_;
329 330
330 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; 331 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_;
331 332
332 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); 333 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance);
333 }; 334 };
334 335
335 } // namespace content 336 } // namespace content
336 337
337 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 338 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698