blob: dfd0eeeab8fa3b16b2f96b8f0a393755f6690618 [file] [log] [blame]
// Copyright 2021 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 IOS_WEB_FAVICON_FAVICON_JAVA_SCRIPT_FEATURE_H_
#define IOS_WEB_FAVICON_FAVICON_JAVA_SCRIPT_FEATURE_H_
#import "ios/web/public/js_messaging/java_script_feature.h"
namespace web {
class FaviconJavaScriptFeature : public JavaScriptFeature {
public:
FaviconJavaScriptFeature();
~FaviconJavaScriptFeature() override;
private:
// JavaScriptFeature:
base::Optional<std::string> GetScriptMessageHandlerName() const override;
void ScriptMessageReceived(web::WebState* web_state,
const web::ScriptMessage& message) override;
FaviconJavaScriptFeature(const FaviconJavaScriptFeature&) = delete;
FaviconJavaScriptFeature& operator=(const FaviconJavaScriptFeature&) = delete;
};
} // namespace web
#endif // IOS_WEB_FAVICON_FAVICON_JAVA_SCRIPT_FEATURE_H_