• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "libcef/common/extensions/chrome_generated_schemas.h"
6 
7 #include "libcef/browser/extensions/chrome_api_registration.h"
8 
9 #include "base/macros.h"
10 #include "chrome/common/extensions/api/generated_schemas.h"
11 
12 namespace extensions {
13 namespace api {
14 namespace cef {
15 
16 // static
Get(const std::string & name)17 base::StringPiece ChromeGeneratedSchemas::Get(const std::string& name) {
18   if (!ChromeFunctionRegistry::IsSupported(name))
19     return base::StringPiece();
20   return extensions::api::ChromeGeneratedSchemas::Get(name);
21 }
22 
23 // static
IsGenerated(std::string name)24 bool ChromeGeneratedSchemas::IsGenerated(std::string name) {
25   if (!ChromeFunctionRegistry::IsSupported(name))
26     return false;
27   return extensions::api::ChromeGeneratedSchemas::IsGenerated(name);
28 }
29 
30 }  // namespace cef
31 }  // namespace api
32 }  // namespace extensions
33