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

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

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 6 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_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/browser/loader/navigation_url_loader.h" 11 #include "content/browser/loader/navigation_url_loader.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // NavigationURLLoader::Create uses the currently registered factory to create 15 // NavigationURLLoader::Create uses the currently registered factory to create
16 // the loader. This is intended for testing. 16 // the loader. This is intended for testing.
17 class NavigationURLLoaderFactory { 17 class NavigationURLLoaderFactory {
18 public: 18 public:
19 virtual std::unique_ptr<NavigationURLLoader> CreateLoader( 19 virtual std::unique_ptr<NavigationURLLoader> CreateLoader(
20 BrowserContext* browser_context, 20 BrowserContext* browser_context,
21 std::unique_ptr<NavigationRequestInfo> request_info, 21 std::unique_ptr<NavigationRequestInfo> request_info,
22 ServiceWorkerNavigationHandle* service_worker_handle, 22 ServiceWorkerContextWrapper* service_worker_context_wrapper,
23 NavigationURLLoaderDelegate* delegate) = 0; 23 NavigationURLLoaderDelegate* delegate) = 0;
24 24
25 protected: 25 protected:
26 NavigationURLLoaderFactory() {} 26 NavigationURLLoaderFactory() {}
27 virtual ~NavigationURLLoaderFactory() {} 27 virtual ~NavigationURLLoaderFactory() {}
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderFactory); 30 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderFactory);
31 }; 31 };
32 32
33 } // namespace content 33 } // namespace content
34 34
35 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_ 35 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698