OLD | NEW |
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_HINTS_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/public/cpp/bindings/interface_request.h" | 9 #include "mojo/public/cpp/bindings/interface_request.h" |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ResourceHintsHandlerImpl(blink::mojom::ResourceHintsHandlerRequest request, | 23 ResourceHintsHandlerImpl(blink::mojom::ResourceHintsHandlerRequest request, |
24 ResourceContext* resource_context); | 24 ResourceContext* resource_context); |
25 | 25 |
26 ~ResourceHintsHandlerImpl() override; | 26 ~ResourceHintsHandlerImpl() override; |
27 | 27 |
28 // blink::mojom::ResourceHintsHandler: | 28 // blink::mojom::ResourceHintsHandler: |
29 void Preresolve(const GURL& url) override; | 29 void Preresolve(const GURL& url) override; |
30 void Preconnect(const GURL& url, | 30 void Preconnect(const GURL& url, |
31 bool credentials_flag, | 31 bool credentials_flag, |
32 uint8_t num_connections) override; | 32 uint8_t num_connections) override; |
| 33 void SendNavigationHint(const GURL& url, |
| 34 blink::mojom::NavigationHintType type) override; |
33 | 35 |
34 static void RegisterConnection( | 36 static void RegisterConnection( |
35 RenderProcessHost* render_process_host, | 37 RenderProcessHost* render_process_host, |
36 blink::mojom::ResourceHintsHandlerRequest request); | 38 blink::mojom::ResourceHintsHandlerRequest request); |
37 | 39 |
38 private: | 40 private: |
39 static void RegisterConnectionOnIOThread( | 41 static void RegisterConnectionOnIOThread( |
40 ResourceContext* resource_context, | 42 ResourceContext* resource_context, |
41 blink::mojom::ResourceHintsHandlerRequest request); | 43 blink::mojom::ResourceHintsHandlerRequest request); |
42 ResourceContext* resource_context_; | 44 ResourceContext* resource_context_; |
43 mojo::StrongBinding<blink::mojom::ResourceHintsHandler> binding_; | 45 mojo::StrongBinding<blink::mojom::ResourceHintsHandler> binding_; |
44 | 46 |
45 DISALLOW_COPY_AND_ASSIGN(ResourceHintsHandlerImpl); | 47 DISALLOW_COPY_AND_ASSIGN(ResourceHintsHandlerImpl); |
46 }; | 48 }; |
47 | 49 |
48 } // namespace content | 50 } // namespace content |
49 | 51 |
50 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ | 52 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HINTS_CONTROLLER_H_ |
OLD | NEW |