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

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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up existing registration case Created 6 years, 10 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/browser/service_worker/embedded_worker_instance.h" 13 #include "content/browser/service_worker/embedded_worker_instance.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/service_worker/service_worker_status_code.h" 15 #include "content/common/service_worker/service_worker_status_code.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 namespace content { 19 namespace content {
20 20
21 class EmbeddedWorkerRegistry; 21 class EmbeddedWorkerRegistry;
22 class ServiceWorkerProviderHost;
23 class ServiceWorkerRegistration; 22 class ServiceWorkerRegistration;
24 struct ServiceWorkerFetchRequest; 23 struct ServiceWorkerFetchRequest;
25 24
26 // This class corresponds to a specific version of a ServiceWorker 25 // This class corresponds to a specific version of a ServiceWorker
27 // script for a given pattern. When a script is upgraded, there may be 26 // script for a given pattern. When a script is upgraded, there may be
28 // more than one ServiceWorkerVersion "running" at a time, but only 27 // more than one ServiceWorkerVersion "running" at a time, but only
29 // one of them is active. This class connects the actual script with a 28 // one of them is active. This class connects the actual script with a
30 // running worker. 29 // running worker.
31 // Instances of this class are in one of two install states: 30 // Instances of this class are in one of two install states:
32 // - Pending: The script is in the process of being installed. There 31 // - Pending: The script is in the process of being installed. There
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 123
125 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; 124 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_;
126 scoped_ptr<EmbeddedWorkerInstance::Observer> observer_; 125 scoped_ptr<EmbeddedWorkerInstance::Observer> observer_;
127 126
128 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 127 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
129 }; 128 };
130 129
131 } // namespace content 130 } // namespace content
132 131
133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 132 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698