| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/renderer/binding_access_checker.h" | 5 #include "extensions/renderer/bindings/binding_access_checker.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "gin/converter.h" | 8 #include "gin/converter.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 BindingAccessChecker::BindingAccessChecker( | 12 BindingAccessChecker::BindingAccessChecker( |
| 13 const AvailabilityCallback& is_available) | 13 const AvailabilityCallback& is_available) |
| 14 : is_available_(is_available) {} | 14 : is_available_(is_available) {} |
| 15 BindingAccessChecker::~BindingAccessChecker() {} | 15 BindingAccessChecker::~BindingAccessChecker() {} |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 context->GetIsolate(), | 27 context->GetIsolate(), |
| 28 base::StringPrintf("'%s' is not available in this context.", | 28 base::StringPrintf("'%s' is not available in this context.", |
| 29 full_name.c_str())))); | 29 full_name.c_str())))); |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 return true; | 33 return true; |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace extensions | 36 } // namespace extensions |
| OLD | NEW |