1 // Copyright 2018 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 #ifndef FUCHSIA_ENGINE_COMMON_WEB_ENGINE_CONTENT_CLIENT_H_ 6 #define FUCHSIA_ENGINE_COMMON_WEB_ENGINE_CONTENT_CLIENT_H_ 7 8 #include "base/macros.h" 9 #include "content/public/common/content_client.h" 10 11 class WebEngineContentClient : public content::ContentClient { 12 public: 13 WebEngineContentClient(); 14 ~WebEngineContentClient() override; 15 16 // content::ContentClient implementation. 17 base::string16 GetLocalizedString(int message_id) override; 18 base::StringPiece GetDataResource(int resource_id, 19 ui::ScaleFactor scale_factor) override; 20 base::RefCountedMemory* GetDataResourceBytes(int resource_id) override; 21 gfx::Image& GetNativeImageNamed(int resource_id) override; 22 blink::OriginTrialPolicy* GetOriginTrialPolicy() override; 23 void AddAdditionalSchemes(Schemes* schemes) override; 24 25 private: 26 DISALLOW_COPY_AND_ASSIGN(WebEngineContentClient); 27 }; 28 29 #endif // FUCHSIA_ENGINE_COMMON_WEB_ENGINE_CONTENT_CLIENT_H_ 30