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

Side by Side Diff: chrome/browser/net/url_info.cc

Issue 899883004: Added chrome-side support for link rel=preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed formatting nit Created 5 years, 10 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/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »
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 #include "chrome/browser/net/url_info.h" 5 #include "chrome/browser/net/url_info.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <math.h> 8 #include <math.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 case PAGE_SCAN_MOTIVATED: 347 case PAGE_SCAN_MOTIVATED:
348 return "[page scan]"; 348 return "[page scan]";
349 349
350 case OMNIBOX_MOTIVATED: 350 case OMNIBOX_MOTIVATED:
351 return "[omnibox]"; 351 return "[omnibox]";
352 352
353 case STARTUP_LIST_MOTIVATED: 353 case STARTUP_LIST_MOTIVATED:
354 return "[startup list]"; 354 return "[startup list]";
355 355
356 case EARLY_LOAD_MOTIVATED:
357 return "[early-load]";
358
356 case NO_PREFETCH_MOTIVATION: 359 case NO_PREFETCH_MOTIVATION:
357 return "n/a"; 360 return "n/a";
358 361
359 case STATIC_REFERAL_MOTIVATED: 362 case STATIC_REFERAL_MOTIVATED:
360 return RemoveJs(referring_url_.spec()) + "*"; 363 return RemoveJs(referring_url_.spec()) + "*";
361 364
362 case LEARNED_REFERAL_MOTIVATED: 365 case LEARNED_REFERAL_MOTIVATED:
363 return RemoveJs(referring_url_.spec()); 366 return RemoveJs(referring_url_.spec());
364 367
365 default: 368 default:
366 return std::string(); 369 return std::string();
367 } 370 }
368 } 371 }
369 372
370 } // namespace chrome_browser_net 373 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698