• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_COMMON_RESOURCE_BUNDLE_IMPL_H_
6 #define CEF_LIBCEF_COMMON_RESOURCE_BUNDLE_IMPL_H_
7 #pragma once
8 
9 #include "include/cef_resource_bundle.h"
10 
11 class CefResourceBundleImpl : public CefResourceBundle {
12  public:
13   CefResourceBundleImpl();
14 
15   CefResourceBundleImpl(const CefResourceBundleImpl&) = delete;
16   CefResourceBundleImpl& operator=(const CefResourceBundleImpl&) = delete;
17 
18   // CefResourceBundle methods.
19   CefString GetLocalizedString(int string_id) override;
20   CefRefPtr<CefBinaryValue> GetDataResource(int resource_id) override;
21   CefRefPtr<CefBinaryValue> GetDataResourceForScale(
22       int resource_id,
23       ScaleFactor scale_factor) override;
24 
25  private:
26   IMPLEMENT_REFCOUNTING(CefResourceBundleImpl);
27 };
28 
29 #endif  // CEF_LIBCEF_COMMON_RESOURCE_BUNDLE_IMPL_H_
30