blob: c106e65239b870fa7a6bc80f9c2217293c2fe459 [file]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "components/autofill/ios/browser/new_frame_catcher.h"
namespace autofill::test {
NewFrameCatcher::NewFrameCatcher(web::WebFramesManager* manager) {
scoped_observer_.Observe(manager);
}
NewFrameCatcher::~NewFrameCatcher() = default;
void NewFrameCatcher::WebFrameBecameAvailable(
web::WebFramesManager* web_frames_manager,
web::WebFrame* web_frame) {
latest_new_frame_id_ = web_frame->GetFrameId();
}
} // namespace autofill::test