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

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

Issue 269373002: Store the service worker script and its imports on first load... kinda (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 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_
7 7
8 #include "content/browser/service_worker/service_worker_request_handler.h" 8 #include "content/browser/service_worker/service_worker_request_handler.h"
9 #include "content/browser/service_worker/service_worker_version.h"
nhiroki 2014/05/08 01:58:56 nit: Maybe you don't have to include this here (yo
9 10
10 namespace content { 11 namespace content {
11 12
12 class ServiceWorkerVersion; 13 class ServiceWorkerVersion;
13 14
14 // A request handler derivative used to handle requests from 15 // A request handler derivative used to handle requests from
15 // service workers. 16 // service workers.
16 class CONTENT_EXPORT ServiceWorkerContextRequestHandler 17 class CONTENT_EXPORT ServiceWorkerContextRequestHandler
17 : public ServiceWorkerRequestHandler { 18 : public ServiceWorkerRequestHandler {
18 public: 19 public:
(...skipping 13 matching lines...) Expand all
32 bool ShouldReadFromScriptCache(const GURL& url, int64* response_id_out); 33 bool ShouldReadFromScriptCache(const GURL& url, int64* response_id_out);
33 34
34 scoped_refptr<ServiceWorkerVersion> version_; 35 scoped_refptr<ServiceWorkerVersion> version_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler); 37 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler);
37 }; 38 };
38 39
39 } // namespace content 40 } // namespace content
40 41
41 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_ 42 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698