Commit 4b9a1e06 authored by Sebastian Hengst's avatar Sebastian Hengst
Browse files

Backed out changeset b5ea37e08220 (bug 1397128)

parent 09429732
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ Cache::Match(JSContext* aCx, const RequestOrUSVString& aRequest,
  ToCacheQueryParams(params, aOptions);

  AutoChildOpArgs args(this,
                       CacheMatchArgs(CacheRequest(), params, OpenMode()),
                       CacheMatchArgs(CacheRequest(), params, OpenMode::Eager),
                       1);

  args.Add(ir, IgnoreBody, IgnoreInvalidScheme, aRv);
@@ -314,7 +314,7 @@ Cache::MatchAll(JSContext* aCx, const Optional<RequestOrUSVString>& aRequest,
  ToCacheQueryParams(params, aOptions);

  AutoChildOpArgs args(this,
                       CacheMatchAllArgs(void_t(), params, OpenMode()),
                       CacheMatchAllArgs(void_t(), params, OpenMode::Eager),
                       1);

  if (aRequest.WasPassed()) {
@@ -498,7 +498,7 @@ Cache::Keys(JSContext* aCx, const Optional<RequestOrUSVString>& aRequest,
  ToCacheQueryParams(params, aOptions);

  AutoChildOpArgs args(this,
                       CacheKeysArgs(void_t(), params, OpenMode()),
                       CacheKeysArgs(void_t(), params, OpenMode::Eager),
                       1);

  if (aRequest.WasPassed()) {
@@ -691,12 +691,6 @@ Cache::PutAll(JSContext* aCx, const nsTArray<RefPtr<Request>>& aRequestList,
  return ExecuteOp(args, aRv);
}

OpenMode
Cache::OpenMode() const
{
  return mNamespace == CHROME_ONLY_NAMESPACE ? OpenMode::Eager : OpenMode::Lazy;
}

} // namespace cache
} // namespace dom
} // namespace mozilla
+0 −3
Original line number Diff line number Diff line
@@ -107,9 +107,6 @@ private:
         const nsTArray<RefPtr<Response>>& aResponseList,
         ErrorResult& aRv);

  OpenMode
  OpenMode() const;

  nsCOMPtr<nsIGlobalObject> mGlobal;
  CacheChild* mActor;
  const Namespace mNamespace;
+1 −7
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ CacheStorage::Match(JSContext* aCx, const RequestOrUSVString& aRequest,

  nsAutoPtr<Entry> entry(new Entry());
  entry->mPromise = promise;
  entry->mArgs = StorageMatchArgs(CacheRequest(), params, OpenMode());
  entry->mArgs = StorageMatchArgs(CacheRequest(), params, OpenMode::Eager);
  entry->mRequest = request;

  mPendingRequests.AppendElement(entry.forget());
@@ -617,12 +617,6 @@ CacheStorage::MaybeRunPendingRequests()
  mPendingRequests.Clear();
}

OpenMode
CacheStorage::OpenMode() const
{
  return mNamespace == CHROME_ONLY_NAMESPACE ? OpenMode::Eager : OpenMode::Lazy;
}

} // namespace cache
} // namespace dom
} // namespace mozilla
+0 −3
Original line number Diff line number Diff line
@@ -104,9 +104,6 @@ private:

  void MaybeRunPendingRequests();

  OpenMode
  OpenMode() const;

  const Namespace mNamespace;
  nsCOMPtr<nsIGlobalObject> mGlobal;
  UniquePtr<mozilla::ipc::PrincipalInfo> mPrincipalInfo;