script_context_set_iterable.cc 674 B

123456789101112131415161718192021
  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. #include "extensions/renderer/script_context_set_iterable.h"
  5. namespace extensions {
  6. void ScriptContextSetIterable::ForEach(
  7. content::RenderFrame* render_frame,
  8. const base::RepeatingCallback<void(ScriptContext*)>& callback) {
  9. ForEach(std::string(), render_frame, callback);
  10. }
  11. void ScriptContextSetIterable::ForEach(
  12. const std::string& extension_id,
  13. const base::RepeatingCallback<void(ScriptContext*)>& callback) {
  14. ForEach(extension_id, nullptr, callback);
  15. }
  16. } // namespace extensions