cef/libcef/common/net/net_resource_provider.cc
Marshall Greenblatt 6573df6cc3 Update to Chromium version 85.0.4183.0 (#782793)
- Windows: 10.0.19041 SDK is now required.
- macOS: 10.15.1 SDK (at least Xcode 11.2) is now required.
- Remove CefMediaSource::IsValid and CefMediaSink::IsValid which would
  always return true.
2020-07-16 19:11:12 -04:00

17 lines
646 B
C++

// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "libcef/common/net/net_resource_provider.h"
#include "base/logging.h"
#include "chrome/common/net/net_resource_provider.h"
scoped_refptr<base::RefCountedMemory> NetResourceProvider(int key) {
// Chrome performs substitution of localized strings for directory listings.
scoped_refptr<base::RefCountedMemory> value = ChromeNetResourceProvider(key);
if (!value)
LOG(ERROR) << "No data resource available for id " << key;
return value;
}