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

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

Issue 1893313007: DevTools: Attach all Service Workers except for old redundant ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated pfeldman's comment Created 4 years, 8 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
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 // Called when the main script load accessed the network. 165 // Called when the main script load accessed the network.
166 void OnNetworkAccessedForScriptLoad(); 166 void OnNetworkAccessedForScriptLoad();
167 167
168 // Called when reading the main script from the service worker script cache 168 // Called when reading the main script from the service worker script cache
169 // begins and ends. 169 // begins and ends.
170 void OnScriptReadStarted(); 170 void OnScriptReadStarted();
171 void OnScriptReadFinished(); 171 void OnScriptReadFinished();
172 172
173 // Called when the worker is installed.
174 void OnWorkerVersionInstalled();
175
176 // Called when the worker is doomed.
177 void OnWorkerVersionDoomed();
178
173 // Called when the net::URLRequestJob to load the service worker script 179 // Called when the net::URLRequestJob to load the service worker script
174 // created. Not called for import scripts. 180 // created. Not called for import scripts.
175 void OnURLJobCreatedForMainScript(); 181 void OnURLJobCreatedForMainScript();
176 182
177 static std::string StatusToString(Status status); 183 static std::string StatusToString(Status status);
178 static std::string StartingPhaseToString(StartingPhase phase); 184 static std::string StartingPhaseToString(StartingPhase phase);
179 185
180 void Detach(); 186 void Detach();
181 187
182 base::WeakPtr<EmbeddedWorkerInstance> AsWeakPtr(); 188 base::WeakPtr<EmbeddedWorkerInstance> AsWeakPtr();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 base::TimeTicks step_time_; 308 base::TimeTicks step_time_;
303 309
304 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; 310 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_;
305 311
306 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance); 312 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance);
307 }; 313 };
308 314
309 } // namespace content 315 } // namespace content
310 316
311 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_ 317 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698