Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / fetch / FetchContext.cpp
index bf2f949..7437e46 100644 (file)
 #include "core/fetch/FetchContext.h"
 
 
-namespace WebCore {
+namespace blink {
 
 FetchContext& FetchContext::nullInstance()
 {
-    DEFINE_STATIC_LOCAL(FetchContext, instance, ());
-    return instance;
+    DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FetchContext>, instance, (adoptPtrWillBeNoop(new FetchContext())));
+    return *instance;
 }
 
-void FetchContext::dispatchDidChangeResourcePriority(unsigned long, ResourceLoadPriority)
+void FetchContext::dispatchDidChangeResourcePriority(unsigned long, ResourceLoadPriority, int)
 {
 }
 
@@ -52,6 +52,10 @@ void FetchContext::addAdditionalRequestHeaders(Document*, ResourceRequest&, Fetc
 {
 }
 
+void FetchContext::setFirstPartyForCookies(ResourceRequest&)
+{
+}
+
 CachePolicy FetchContext::cachePolicy(Document*) const
 {
     return CachePolicyVerify;
@@ -77,11 +81,11 @@ void FetchContext::dispatchDidDownloadData(DocumentLoader*, unsigned long, int,
 {
 }
 
-void FetchContext::dispatchDidFinishLoading(DocumentLoader*, unsigned long, double)
+void FetchContext::dispatchDidFinishLoading(DocumentLoader*, unsigned long, double, int64_t)
 {
 }
 
-void FetchContext::dispatchDidFail(DocumentLoader*, unsigned long, const ResourceError&)
+void FetchContext::dispatchDidFail(DocumentLoader*, unsigned long, const ResourceError&, bool)
 {
 }
 
@@ -89,4 +93,4 @@ void FetchContext::sendRemainingDelegateMessages(DocumentLoader*, unsigned long,
 {
 }
 
-} // namespace WebCore
+} // namespace blink