Home
last modified time | relevance | path

Searched refs:EmbeddedWorkerInstance (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/content/browser/service_worker/
Dembedded_worker_instance.cc116 EmbeddedWorkerInstance::~EmbeddedWorkerInstance() { in ~EmbeddedWorkerInstance()
126 void EmbeddedWorkerInstance::Start(int64 service_worker_version_id, in Start()
155 base::Bind(&EmbeddedWorkerInstance::RunProcessAllocated, in Start()
162 ServiceWorkerStatusCode EmbeddedWorkerInstance::Stop() { in Stop()
171 void EmbeddedWorkerInstance::ResumeAfterDownload() { in ResumeAfterDownload()
178 ServiceWorkerStatusCode EmbeddedWorkerInstance::SendMessage( in SendMessage()
188 EmbeddedWorkerInstance::EmbeddedWorkerInstance( in EmbeddedWorkerInstance() function in content::EmbeddedWorkerInstance
202 void EmbeddedWorkerInstance::RunProcessAllocated( in RunProcessAllocated()
203 base::WeakPtr<EmbeddedWorkerInstance> instance, in RunProcessAllocated()
206 const EmbeddedWorkerInstance::StatusCallback& callback, in RunProcessAllocated()
[all …]
Dembedded_worker_instance_unittest.cc59 scoped_ptr<EmbeddedWorkerInstance> worker = in TEST_F()
61 EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); in TEST_F()
81 EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status()); in TEST_F()
85 EXPECT_EQ(EmbeddedWorkerInstance::RUNNING, worker->status()); in TEST_F()
90 EXPECT_EQ(EmbeddedWorkerInstance::STOPPING, worker->status()); in TEST_F()
94 EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); in TEST_F()
104 scoped_ptr<EmbeddedWorkerInstance> worker = in TEST_F()
106 EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); in TEST_F()
Dembedded_worker_instance.h38 class CONTENT_EXPORT EmbeddedWorkerInstance {
69 ~EmbeddedWorkerInstance();
112 EmbeddedWorkerInstance(base::WeakPtr<ServiceWorkerContextCore> context,
118 base::WeakPtr<EmbeddedWorkerInstance> instance,
121 const EmbeddedWorkerInstance::StatusCallback& callback,
190 base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_;
192 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstance);
Dembedded_worker_test_helper.cc156 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in SimulatePausedAfterDownload()
163 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in SimulateWorkerReadyForInspection()
171 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in SimulateWorkerScriptLoaded()
179 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in SimulateWorkerStarted()
188 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in SimulateWorkerStopped()
201 EmbeddedWorkerInstance* worker = in OnStartWorkerStub()
204 EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status()); in OnStartWorkerStub()
218 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in OnResumeAfterDownloadStub()
228 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in OnStopWorkerStub()
241 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in OnMessageToWorkerStub()
Dembedded_worker_registry.h30 class EmbeddedWorkerInstance; variable
56 scoped_ptr<EmbeddedWorkerInstance> CreateWorker(); in NON_EXPORTED_BASE()
95 EmbeddedWorkerInstance* GetWorker(int embedded_worker_id); in NON_EXPORTED_BASE()
102 friend class EmbeddedWorkerInstance; in NON_EXPORTED_BASE() local
104 typedef std::map<int, EmbeddedWorkerInstance*> WorkerInstanceMap; in NON_EXPORTED_BASE()
Dservice_worker_version.h45 public EmbeddedWorkerInstance::Listener { in NON_EXPORTED_BASE()
55 STOPPED = EmbeddedWorkerInstance::STOPPED, in NON_EXPORTED_BASE()
56 STARTING = EmbeddedWorkerInstance::STARTING, in NON_EXPORTED_BASE()
57 RUNNING = EmbeddedWorkerInstance::RUNNING, in NON_EXPORTED_BASE()
58 STOPPING = EmbeddedWorkerInstance::STOPPING, in NON_EXPORTED_BASE()
214 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); } in NON_EXPORTED_BASE()
276 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; in NON_EXPORTED_BASE()
Dservice_worker_browsertest.cc307 public EmbeddedWorkerInstance::Listener {
312 : last_worker_status_(EmbeddedWorkerInstance::STOPPED), in EmbeddedWorkerBrowserTest()
326 EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker_->status()); in StartOnIOThread()
348 EXPECT_EQ(EmbeddedWorkerInstance::STARTING, last_worker_status_); in StartOnIOThread2()
356 EXPECT_EQ(EmbeddedWorkerInstance::RUNNING, worker_->status()); in StopOnIOThread()
362 EXPECT_EQ(EmbeddedWorkerInstance::STOPPING, last_worker_status_); in StopOnIOThread()
403 scoped_ptr<EmbeddedWorkerInstance> worker_;
404 EmbeddedWorkerInstance::Status last_worker_status_;
586 ASSERT_EQ(EmbeddedWorkerInstance::RUNNING, last_worker_status_); in IN_PROC_BROWSER_TEST_F()
595 ASSERT_EQ(EmbeddedWorkerInstance::STOPPED, last_worker_status_); in IN_PROC_BROWSER_TEST_F()
[all …]
Dembedded_worker_registry.cc38 scoped_ptr<EmbeddedWorkerInstance> EmbeddedWorkerRegistry::CreateWorker() { in CreateWorker()
39 scoped_ptr<EmbeddedWorkerInstance> worker( in CreateWorker()
40 new EmbeddedWorkerInstance(context_, next_embedded_worker_id_)); in CreateWorker()
189 EmbeddedWorkerInstance* EmbeddedWorkerRegistry::GetWorker( in GetWorker()
Dservice_worker_version_unittest.cc82 class MessageReceiverFromWorker : public EmbeddedWorkerInstance::Listener {
84 explicit MessageReceiverFromWorker(EmbeddedWorkerInstance* instance) in MessageReceiverFromWorker()
107 EmbeddedWorkerInstance* instance_;
Dservice_worker_cache_listener.h23 class ServiceWorkerCacheListener : public EmbeddedWorkerInstance::Listener {
Dservice_worker_register_job.h37 public EmbeddedWorkerInstance::Listener,
Dservice_worker_job_unittest.cc415 EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id); in OnStartWorker()