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

Side by Side Diff: content/browser/loader/resource_requester_info.h

Issue 2498193003: [WIP not ready for review] ServiceWorker Download support.
Patch Set: rebase Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_LOADER_RESOURCE_REQUESTER_INFO_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_REQUESTER_INFO_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUESTER_INFO_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUESTER_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 static std::unique_ptr<ResourceRequesterInfo> CreateForRendererTesting( 55 static std::unique_ptr<ResourceRequesterInfo> CreateForRendererTesting(
56 int child_id); 56 int child_id);
57 57
58 // Creates a ResourceRequesterInfo for a browser side navigation request which 58 // Creates a ResourceRequesterInfo for a browser side navigation request which
59 // is initiated by the browser process. 59 // is initiated by the browser process.
60 static std::unique_ptr<ResourceRequesterInfo> CreateForBrowserSideNavigation( 60 static std::unique_ptr<ResourceRequesterInfo> CreateForBrowserSideNavigation(
61 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); 61 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context);
62 62
63 // Creates a ResourceRequesterInfo for a download or page save request. 63 // Creates a ResourceRequesterInfo for a download or page save request.
64 static std::unique_ptr<ResourceRequesterInfo> CreateForDownloadOrPageSave( 64 static std::unique_ptr<ResourceRequesterInfo> CreateForDownloadOrPageSave(
65 int child_id); 65 int child_id,
66 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context);
66 67
67 // Creates a ResourceRequesterInfo for a service worker navigation preload 68 // Creates a ResourceRequesterInfo for a service worker navigation preload
68 // request. When PlzNavigate is enabled, |original_request_info| must be 69 // request. When PlzNavigate is enabled, |original_request_info| must be
69 // browser side navigation type. Otherwise it must be renderer type. 70 // browser side navigation type. Otherwise it must be renderer type.
70 static std::unique_ptr<ResourceRequesterInfo> CreateForNavigationPreload( 71 static std::unique_ptr<ResourceRequesterInfo> CreateForNavigationPreload(
71 const ResourceRequesterInfo& original_request_info); 72 const ResourceRequesterInfo& original_request_info);
72 73
73 ~ResourceRequesterInfo(); 74 ~ResourceRequesterInfo();
74 75
75 std::unique_ptr<ResourceRequesterInfo> clone() const; 76 std::unique_ptr<ResourceRequesterInfo> clone() const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 scoped_refptr<storage::FileSystemContext> file_system_context_; 153 scoped_refptr<storage::FileSystemContext> file_system_context_;
153 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 154 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
154 GetContextsCallback get_contexts_callback_; 155 GetContextsCallback get_contexts_callback_;
155 156
156 DISALLOW_COPY_AND_ASSIGN(ResourceRequesterInfo); 157 DISALLOW_COPY_AND_ASSIGN(ResourceRequesterInfo);
157 }; 158 };
158 159
159 } // namespace content 160 } // namespace content
160 161
161 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUESTER_INFO_H_ 162 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUESTER_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_requester_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698