blob: 0d6607b5d5536160712d11d1e5fd1c4069cbbe30 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_THIN_WEBVIEW_THIN_WEBVIEW_INITIALIZER_H_
#define COMPONENTS_THIN_WEBVIEW_THIN_WEBVIEW_INITIALIZER_H_
#include "base/macros.h"
namespace content {
class WebContents;
} // namespace content
namespace thin_webview {
namespace android {
// A helper class to help in attaching tab helpers.
class ThinWebViewInitializer {
public:
static void SetInstance(ThinWebViewInitializer* instance);
static ThinWebViewInitializer* GetInstance();
ThinWebViewInitializer() = default;
~ThinWebViewInitializer() = default;
virtual void AttachTabHelpers(content::WebContents* web_contents) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(ThinWebViewInitializer);
};
} // namespace android
} // namespace thin_webview
#endif // COMPONENTS_THIN_WEBVIEW_THIN_WEBVIEW_INITIALIZER_H_