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