OLD | NEW |
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 Loading... |
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 |
OLD | NEW |