| Index: content/browser/service_worker/embedded_worker_instance.h
|
| diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
|
| index 510e72ba9e800c7505ae21b6561399ac664b4fc5..75813248ff6d417cf729fc07a871764f1fb7d77d 100644
|
| --- a/content/browser/service_worker/embedded_worker_instance.h
|
| +++ b/content/browser/service_worker/embedded_worker_instance.h
|
| @@ -9,6 +9,7 @@
|
| #include <vector>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/callback.h"
|
| #include "base/callback_forward.h"
|
| #include "base/gtest_prod_util.h"
|
| #include "base/logging.h"
|
| @@ -145,6 +146,10 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
|
| void OnScriptLoadFailed();
|
|
|
| // Called back from Registry when the worker instance has ack'ed that
|
| + // it finished evaluating the script.
|
| + void OnScriptEvaluated(bool success);
|
| +
|
| + // Called back from Registry when the worker instance has ack'ed that
|
| // its WorkerGlobalScope is actually started and parsed.
|
| // This will change the internal status from STARTING to RUNNING.
|
| void OnStarted();
|
| @@ -185,6 +190,8 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
|
| int thread_id_;
|
| int worker_devtools_agent_route_id_;
|
|
|
| + StatusCallback start_callback_;
|
| +
|
| ListenerList listener_list_;
|
|
|
| base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_;
|
|
|