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

Side by Side Diff: content/child/service_worker/service_worker_network_provider.h

Issue 193723003: Identify service worker version at main resource load time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_IMPL_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_IMPL_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 20 matching lines...) Expand all
31 scoped_ptr<ServiceWorkerNetworkProvider> network_provider); 31 scoped_ptr<ServiceWorkerNetworkProvider> network_provider);
32 32
33 static ServiceWorkerNetworkProvider* FromDocumentState( 33 static ServiceWorkerNetworkProvider* FromDocumentState(
34 base::SupportsUserData* document_state); 34 base::SupportsUserData* document_state);
35 35
36 ServiceWorkerNetworkProvider(); 36 ServiceWorkerNetworkProvider();
37 virtual ~ServiceWorkerNetworkProvider(); 37 virtual ~ServiceWorkerNetworkProvider();
38 38
39 int provider_id() const { return provider_id_; } 39 int provider_id() const { return provider_id_; }
40 40
41 // This method is called for a provider that's associated with a
42 // running service worker script. The version_id indicates which
43 // ServiceWorkerVersion should be used.
44 void SetServiceWorkerVersionId(int64 version_id);
45
41 private: 46 private:
42 const int provider_id_; 47 const int provider_id_;
43 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); 48 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider);
44 }; 49 };
45 50
46 } // namespace content 51 } // namespace content
47 52
48 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 53 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698