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 "chrome/common/extensions/api/generated_schemas.h" 10 11 namespace extensions { 12 namespace api { 13 namespace cef { 14 15 // static Get(const std::string & name)16base::StringPiece ChromeGeneratedSchemas::Get(const std::string& name) { 17 if (!ChromeFunctionRegistry::IsSupported(name)) 18 return base::StringPiece(); 19 return extensions::api::ChromeGeneratedSchemas::Get(name); 20 } 21 22 // static IsGenerated(std::string name)23bool ChromeGeneratedSchemas::IsGenerated(std::string name) { 24 if (!ChromeFunctionRegistry::IsSupported(name)) 25 return false; 26 return extensions::api::ChromeGeneratedSchemas::IsGenerated(name); 27 } 28 29 } // namespace cef 30 } // namespace api 31 } // namespace extensions 32