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

Side by Side Diff: content/browser/loader/resource_hints_handler_impl.cc

Issue 2095303002: sendNavigationHint with mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sendNavigationHint mojo Created 4 years, 5 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 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
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
OLDNEW
« no previous file with comments | « content/browser/loader/resource_hints_handler_impl.h ('k') | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698