blob: 8826a62e0dd3e99d6ccd26e18d60b8c9c9ad019a [file] [log] [blame]
// Copyright (c) 2015 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 BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_
#define BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_
#include <string>
#include "content/public/common/content_client.h"
namespace blimp {
namespace engine {
std::string GetBlimpEngineUserAgent();
class BlimpContentClient : public content::ContentClient {
public:
~BlimpContentClient() override;
// content::ContentClient implementation.
std::string GetUserAgent() const override;
base::string16 GetLocalizedString(int message_id) const override;
base::StringPiece GetDataResource(
int resource_id,
ui::ScaleFactor scale_factor) const override;
base::RefCountedStaticMemory* GetDataResourceBytes(
int resource_id) const override;
gfx::Image& GetNativeImageNamed(int resource_id) const override;
};
} // namespace engine
} // namespace blimp
#endif // BLIMP_ENGINE_COMMON_BLIMP_CONTENT_CLIENT_H_