• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #include "libcef/common/net/net_resource_provider.h"
6 
7 #include "base/logging.h"
8 #include "chrome/common/net/net_resource_provider.h"
9 
NetResourceProvider(int key)10 scoped_refptr<base::RefCountedMemory> NetResourceProvider(int key) {
11   // Chrome performs substitution of localized strings for directory listings.
12   scoped_refptr<base::RefCountedMemory> value = ChromeNetResourceProvider(key);
13   if (!value)
14     LOG(ERROR) << "No data resource available for id " << key;
15   return value;
16 }
17