2013-06-24 20:57:05 +02:00
|
|
|
// 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.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#include "libcef/common/net/net_resource_provider.h"
|
2018-10-19 20:39:54 +02:00
|
|
|
|
2020-07-08 19:23:29 +02:00
|
|
|
#include "base/logging.h"
|
2018-10-19 20:39:54 +02:00
|
|
|
#include "chrome/common/net/net_resource_provider.h"
|
2013-06-24 20:57:05 +02:00
|
|
|
|
2019-11-12 17:11:44 +01:00
|
|
|
scoped_refptr<base::RefCountedMemory> NetResourceProvider(int key) {
|
2018-10-19 20:39:54 +02:00
|
|
|
// Chrome performs substitution of localized strings for directory listings.
|
2019-11-12 17:11:44 +01:00
|
|
|
scoped_refptr<base::RefCountedMemory> value = ChromeNetResourceProvider(key);
|
2023-01-02 23:59:03 +01:00
|
|
|
if (!value) {
|
2018-10-19 20:39:54 +02:00
|
|
|
LOG(ERROR) << "No data resource available for id " << key;
|
2023-01-02 23:59:03 +01:00
|
|
|
}
|
2018-10-19 20:39:54 +02:00
|
|
|
return value;
|
2013-06-24 20:57:05 +02:00
|
|
|
}
|