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

Side by Side Diff: Source/WebCore/platform/network/ResourceRequestBase.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
28 28
29 #include "PlatformMemoryInstrumentation.h" 29 #include "PlatformMemoryInstrumentation.h"
30 #include "ResourceRequest.h" 30 #include "ResourceRequest.h"
31 #include <wtf/MemoryInstrumentationHashMap.h> 31 #include <wtf/MemoryInstrumentationHashMap.h>
32 #include <wtf/MemoryInstrumentationVector.h> 32 #include <wtf/MemoryInstrumentationVector.h>
33 33
34 using namespace std; 34 using namespace std;
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 #if !USE(SOUP) && (!PLATFORM(MAC) || USE(CFNETWORK)) && !PLATFORM(QT) 38 #if !USE(SOUP) && (!PLATFORM(MAC) || USE(CFNETWORK))
39 double ResourceRequestBase::s_defaultTimeoutInterval = INT_MAX; 39 double ResourceRequestBase::s_defaultTimeoutInterval = INT_MAX;
40 #else 40 #else
41 // Will use NSURLRequest default timeout unless set to a non-zero value with set DefaultTimeoutInterval(). 41 // Will use NSURLRequest default timeout unless set to a non-zero value with set DefaultTimeoutInterval().
42 // For libsoup the timeout enabled with integer milliseconds. We set 0 as the de fault value to avoid integer overflow. 42 // For libsoup the timeout enabled with integer milliseconds. We set 0 as the de fault value to avoid integer overflow.
43 double ResourceRequestBase::s_defaultTimeoutInterval = 0; 43 double ResourceRequestBase::s_defaultTimeoutInterval = 0;
44 #endif 44 #endif
45 45
46 inline const ResourceRequest& ResourceRequestBase::asResourceRequest() const 46 inline const ResourceRequest& ResourceRequestBase::asResourceRequest() const
47 { 47 {
48 return *static_cast<const ResourceRequest*>(this); 48 return *static_cast<const ResourceRequest*>(this);
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 m_resourceRequestUpdated = true; 519 m_resourceRequestUpdated = true;
520 } 520 }
521 521
522 if (!m_resourceRequestBodyUpdated && bodyPolicy == UpdateHTTPBody) { 522 if (!m_resourceRequestBodyUpdated && bodyPolicy == UpdateHTTPBody) {
523 ASSERT(m_platformRequestBodyUpdated); 523 ASSERT(m_platformRequestBodyUpdated);
524 const_cast<ResourceRequest&>(asResourceRequest()).doUpdateResourceHTTPBo dy(); 524 const_cast<ResourceRequest&>(asResourceRequest()).doUpdateResourceHTTPBo dy();
525 m_resourceRequestBodyUpdated = true; 525 m_resourceRequestBodyUpdated = true;
526 } 526 }
527 } 527 }
528 528
529 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(CHROMIUM) && !P LATFORM(QT) && !PLATFORM(BLACKBERRY)
530 unsigned initializeMaximumHTTPConnectionCountPerHost()
531 {
532 // This is used by the loader to control the number of issued parallel load requests.
533 // Four seems to be a common default in HTTP frameworks.
534 return 4;
535 } 529 }
536 #endif
537
538 }
OLDNEW
« no previous file with comments | « Source/WebCore/platform/network/ResourceHandleInternal.h ('k') | Source/WebCore/platform/text/TextBoundaries.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698