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 #include "content/browser/loader/resource_hints_handler_impl.h" | 5 #include "content/browser/loader/resource_hints_handler_impl.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 void ResourceHintsHandlerImpl::Preconnect(const GURL& url, | 47 void ResourceHintsHandlerImpl::Preconnect(const GURL& url, |
48 bool credentials_flag, | 48 bool credentials_flag, |
49 uint8_t num_connections) { | 49 uint8_t num_connections) { |
50 // TODO(csharrison): Remove HttpRequestInfo::RequestMotivation and add a | 50 // TODO(csharrison): Remove HttpRequestInfo::RequestMotivation and add a |
51 // better enum at the //content layer. | 51 // better enum at the //content layer. |
52 PreconnectUrl(resource_context_, url, GURL(), num_connections, | 52 PreconnectUrl(resource_context_, url, GURL(), num_connections, |
53 credentials_flag, net::HttpRequestInfo::EARLY_LOAD_MOTIVATED); | 53 credentials_flag, net::HttpRequestInfo::EARLY_LOAD_MOTIVATED); |
54 } | 54 } |
55 | 55 |
| 56 void ResourceHintsHandlerImpl::SendNavigationHint( |
| 57 const GURL& url, |
| 58 blink::mojom::NavigationHintType type) { |
| 59 // TODO(horo): Implement this. |
| 60 } |
| 61 |
56 } // namespace content | 62 } // namespace content |
OLD | NEW |