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

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

Issue 615493003: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
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_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // explicit way within content layer, e.g. have ResourceRequestInfoImpl 44 // explicit way within content layer, e.g. have ResourceRequestInfoImpl
45 // own it. 45 // own it.
46 static void InitializeHandler( 46 static void InitializeHandler(
47 net::URLRequest* request, 47 net::URLRequest* request,
48 ServiceWorkerContextWrapper* context_wrapper, 48 ServiceWorkerContextWrapper* context_wrapper,
49 storage::BlobStorageContext* blob_storage_context, 49 storage::BlobStorageContext* blob_storage_context,
50 int process_id, 50 int process_id,
51 int provider_id, 51 int provider_id,
52 bool skip_service_worker, 52 bool skip_service_worker,
53 FetchRequestMode request_mode, 53 FetchRequestMode request_mode,
54 FetchCredentialsMode credentials_mode,
54 ResourceType resource_type, 55 ResourceType resource_type,
55 scoped_refptr<ResourceRequestBody> body); 56 scoped_refptr<ResourceRequestBody> body);
56 57
57 // Returns the handler attached to |request|. This may return NULL 58 // Returns the handler attached to |request|. This may return NULL
58 // if no handler is attached. 59 // if no handler is attached.
59 static ServiceWorkerRequestHandler* GetHandler( 60 static ServiceWorkerRequestHandler* GetHandler(
60 net::URLRequest* request); 61 net::URLRequest* request);
61 62
62 // Creates a protocol interceptor for ServiceWorker. 63 // Creates a protocol interceptor for ServiceWorker.
63 static scoped_ptr<net::URLRequestInterceptor> CreateInterceptor(); 64 static scoped_ptr<net::URLRequestInterceptor> CreateInterceptor();
(...skipping 25 matching lines...) Expand all
89 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; 90 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
90 ResourceType resource_type_; 91 ResourceType resource_type_;
91 92
92 private: 93 private:
93 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 94 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
94 }; 95 };
95 96
96 } // namespace content 97 } // namespace content
97 98
98 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 99 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698