summaryrefslogtreecommitdiff
path: root/libcef/common/net/net_resource_provider.cc
blob: eea3db7503db636a298ad6324e2c361809b4427f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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;
}