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

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

Issue 294593002: ServiceWorker: Support longest-prefix-match for registration scope (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }; 91 };
92 92
93 ServiceWorkerVersion( 93 ServiceWorkerVersion(
94 ServiceWorkerRegistration* registration, 94 ServiceWorkerRegistration* registration,
95 int64 version_id, 95 int64 version_id,
96 base::WeakPtr<ServiceWorkerContextCore> context); 96 base::WeakPtr<ServiceWorkerContextCore> context);
97 97
98 int64 version_id() const { return version_id_; } 98 int64 version_id() const { return version_id_; }
99 int64 registration_id() const { return registration_id_; } 99 int64 registration_id() const { return registration_id_; }
100 const GURL& script_url() const { return script_url_; } 100 const GURL& script_url() const { return script_url_; }
101 const GURL& scope() const { return scope_; }
101 RunningStatus running_status() const { 102 RunningStatus running_status() const {
102 return static_cast<RunningStatus>(embedded_worker_->status()); 103 return static_cast<RunningStatus>(embedded_worker_->status());
103 } 104 }
104 ServiceWorkerVersionInfo GetInfo(); 105 ServiceWorkerVersionInfo GetInfo();
105 Status status() const { return status_; } 106 Status status() const { return status_; }
106 107
107 // This sets the new status and also run status change callbacks 108 // This sets the new status and also run status change callbacks
108 // if there're any (see RegisterStatusChangeCallback). 109 // if there're any (see RegisterStatusChangeCallback).
109 void SetStatus(Status status); 110 void SetStatus(Status status);
110 111
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_; 268 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_;
268 269
269 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 270 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
270 271
271 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 272 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
272 }; 273 };
273 274
274 } // namespace content 275 } // namespace content
275 276
276 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 277 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698