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

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

Issue 2465813003: Stop using MojoURLLoaderFactoryGetter. (Closed)
Patch Set: 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 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_FETCH_DISPATCHER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_DISPATCHER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_DISPATCHER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_DISPATCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 26 matching lines...) Expand all
37 std::unique_ptr<ServiceWorkerFetchRequest> request, 37 std::unique_ptr<ServiceWorkerFetchRequest> request,
38 ServiceWorkerVersion* version, 38 ServiceWorkerVersion* version,
39 ResourceType resource_type, 39 ResourceType resource_type,
40 const net::NetLogWithSource& net_log, 40 const net::NetLogWithSource& net_log,
41 const base::Closure& prepare_callback, 41 const base::Closure& prepare_callback,
42 const FetchCallback& fetch_callback); 42 const FetchCallback& fetch_callback);
43 ~ServiceWorkerFetchDispatcher(); 43 ~ServiceWorkerFetchDispatcher();
44 44
45 // If appropriate, starts the navigation preload request and creates 45 // If appropriate, starts the navigation preload request and creates
46 // |preload_handle_|. 46 // |preload_handle_|.
47 void MaybeStartNavigationPreload( 47 void MaybeStartNavigationPreload(net::URLRequest* original_request);
48 net::URLRequest* original_request,
49 const MojoURLLoaderFactoryGetter& url_loader_factory_getter);
50 48
51 // Dispatches a fetch event to the |version| given in ctor, and fires 49 // Dispatches a fetch event to the |version| given in ctor, and fires
52 // |fetch_callback| (also given in ctor) when finishes. It runs 50 // |fetch_callback| (also given in ctor) when finishes. It runs
53 // |prepare_callback| as an intermediate step once the version is activated 51 // |prepare_callback| as an intermediate step once the version is activated
54 // and running. 52 // and running.
55 void Run(); 53 void Run();
56 54
57 private: 55 private:
58 class ResponseCallback; 56 class ResponseCallback;
59 57
(...skipping 23 matching lines...) Expand all
83 mojom::FetchEventPreloadHandlePtr preload_handle_; 81 mojom::FetchEventPreloadHandlePtr preload_handle_;
84 82
85 base::WeakPtrFactory<ServiceWorkerFetchDispatcher> weak_factory_; 83 base::WeakPtrFactory<ServiceWorkerFetchDispatcher> weak_factory_;
86 84
87 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerFetchDispatcher); 85 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerFetchDispatcher);
88 }; 86 };
89 87
90 } // namespace content 88 } // namespace content
91 89
92 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_DISPATCHER_H_ 90 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_FETCH_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698