content_client.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) 2012 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-CHROMIUM file.
  4. #ifndef BRIGHTRAY_COMMON_CONTENT_CLIENT_H_
  5. #define BRIGHTRAY_COMMON_CONTENT_CLIENT_H_
  6. #include <string>
  7. #include "base/compiler_specific.h"
  8. #include "content/public/common/content_client.h"
  9. namespace brightray {
  10. std::string GetBrightrayUserAgent();
  11. class ContentClient : public content::ContentClient {
  12. public:
  13. ContentClient();
  14. ~ContentClient() override;
  15. private:
  16. std::string GetProduct() const override;
  17. std::string GetUserAgent() const override;
  18. base::string16 GetLocalizedString(int message_id) const override;
  19. base::StringPiece GetDataResource(int resource_id,
  20. ui::ScaleFactor) const override;
  21. gfx::Image& GetNativeImageNamed(int resource_id) const override;
  22. base::RefCountedMemory* GetDataResourceBytes(int resource_id) const override;
  23. DISALLOW_COPY_AND_ASSIGN(ContentClient);
  24. };
  25. } // namespace brightray
  26. #endif // BRIGHTRAY_COMMON_CONTENT_CLIENT_H_