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

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

Issue 309453002: ServiceWorker: Rename 'pending version' to 'installing' or 'waiting' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // processes are used to run an in-renderer embedded worker. 179 // processes are used to run an in-renderer embedded worker.
180 void AddProcessToWorker(int process_id); 180 void AddProcessToWorker(int process_id);
181 void RemoveProcessFromWorker(int process_id); 181 void RemoveProcessFromWorker(int process_id);
182 182
183 // Returns true if this has at least one process to run. 183 // Returns true if this has at least one process to run.
184 bool HasProcessToRun() const; 184 bool HasProcessToRun() const;
185 185
186 // Adds and removes |provider_host| as a controllee of this ServiceWorker. 186 // Adds and removes |provider_host| as a controllee of this ServiceWorker.
187 void AddControllee(ServiceWorkerProviderHost* provider_host); 187 void AddControllee(ServiceWorkerProviderHost* provider_host);
188 void RemoveControllee(ServiceWorkerProviderHost* provider_host); 188 void RemoveControllee(ServiceWorkerProviderHost* provider_host);
189 void AddPendingControllee(ServiceWorkerProviderHost* provider_host); 189 void AddWaitingControllee(ServiceWorkerProviderHost* provider_host);
190 void RemovePendingControllee(ServiceWorkerProviderHost* provider_host); 190 void RemoveWaitingControllee(ServiceWorkerProviderHost* provider_host);
191 191
192 // Returns if it has controllee. 192 // Returns if it has controllee.
193 bool HasControllee() const { return !controllee_map_.empty(); } 193 bool HasControllee() const { return !controllee_map_.empty(); }
194 194
195 // Adds and removes Listeners. 195 // Adds and removes Listeners.
196 void AddListener(Listener* listener); 196 void AddListener(Listener* listener);
197 void RemoveListener(Listener* listener); 197 void RemoveListener(Listener* listener);
198 198
199 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; } 199 ServiceWorkerScriptCacheMap* script_cache_map() { return &script_cache_map_; }
200 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); } 200 EmbeddedWorkerInstance* embedded_worker() { return embedded_worker_.get(); }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_; 267 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_;
268 268
269 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 269 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
270 270
271 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 271 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
272 }; 272 };
273 273
274 } // namespace content 274 } // namespace content
275 275
276 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 276 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698