Istiaque Ahmed | ee72f495 | 2019-03-06 21:18:36 | [diff] [blame] | 1 | // Copyright 2019 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 "extensions/renderer/script_context_set_iterable.h" |
| 6 | |
| 7 | namespace extensions { |
| 8 | |
| 9 | void ScriptContextSetIterable::ForEach( |
| 10 | content::RenderFrame* render_frame, |
| 11 | const base::RepeatingCallback<void(ScriptContext*)>& callback) { |
| 12 | ForEach(std::string(), render_frame, callback); |
| 13 | } |
| 14 | |
| 15 | void ScriptContextSetIterable::ForEach( |
| 16 | const std::string& extension_id, |
| 17 | const base::RepeatingCallback<void(ScriptContext*)>& callback) { |
| 18 | ForEach(extension_id, nullptr, callback); |
| 19 | } |
| 20 | |
| 21 | } // namespace extensions |