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

Side by Side Diff: chrome/browser/net/preconnect.h

Issue 1131293004: Add cross origin to Blink-driven preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ryan's concerns Created 5 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
« no previous file with comments | « no previous file | chrome/browser/net/preconnect.cc » ('j') | chrome/browser/net/preconnect.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A Preconnect instance maintains state while a TCP/IP connection is made, and 5 // A Preconnect instance maintains state while a TCP/IP connection is made, and
6 // and then released into the pool of available connections for future use. 6 // and then released into the pool of available connections for future use.
7 7
8 #ifndef CHROME_BROWSER_NET_PRECONNECT_H_ 8 #ifndef CHROME_BROWSER_NET_PRECONNECT_H_
9 #define CHROME_BROWSER_NET_PRECONNECT_H_ 9 #define CHROME_BROWSER_NET_PRECONNECT_H_
10 10
(...skipping 16 matching lines...) Expand all
27 int count, 27 int count,
28 net::URLRequestContextGetter* getter); 28 net::URLRequestContextGetter* getter);
29 29
30 // Try to preconnect. Typically used by predictor when a subresource probably 30 // Try to preconnect. Typically used by predictor when a subresource probably
31 // needs a connection. |count| may be used to request more than one connection 31 // needs a connection. |count| may be used to request more than one connection
32 // be established in parallel. 32 // be established in parallel.
33 void PreconnectOnIOThread(const GURL& url, 33 void PreconnectOnIOThread(const GURL& url,
34 const GURL& first_party_for_cookies, 34 const GURL& first_party_for_cookies,
35 UrlInfo::ResolutionMotivation motivation, 35 UrlInfo::ResolutionMotivation motivation,
36 int count, 36 int count,
37 net::URLRequestContextGetter* getter); 37 net::URLRequestContextGetter* getter,
38 bool allow_credentials);
38 39
39 } // namespace chrome_browser_net 40 } // namespace chrome_browser_net
40 41
41 #endif // CHROME_BROWSER_NET_PRECONNECT_H_ 42 #endif // CHROME_BROWSER_NET_PRECONNECT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/preconnect.cc » ('j') | chrome/browser/net/preconnect.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698