Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: extensions/renderer/bindings/binding_access_checker.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/binding_access_checker.h ('k') | extensions/renderer/bindings/binding_access_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698