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

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

Issue 255413005: Mostly manual refactoring of ServiceWorkerRequestHandler into a base class and two derived classes,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_request_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_
7
8 #include "content/browser/service_worker/service_worker_request_handler.h"
9
10 namespace content {
11
12 // A request handler derivative used to handle requests from
13 // service workers.
14 class CONTENT_EXPORT ServiceWorkerContextRequestHandler
15 : public ServiceWorkerRequestHandler {
16 public:
17 ServiceWorkerContextRequestHandler(
18 base::WeakPtr<ServiceWorkerContextCore> context,
19 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
20 ResourceType::Type resource_type);
21 virtual ~ServiceWorkerContextRequestHandler();
22
23 // Called via custom URLRequestJobFactory.
24 virtual net::URLRequestJob* MaybeCreateJob(
25 net::URLRequest* request,
26 net::NetworkDelegate* network_delegate) OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698