blob: 28eb2fc884532aee8895feffc2561131299272fd [file] [log] [blame]
// Copyright (c) 2012 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.
#include "content/public/common/content_client.h"
#include "base/compiler_specific.h"
namespace gpu {
struct GPUInfo;
namespace android_webview {
std::string GetProduct();
std::string GetUserAgent();
// extra text to be put into the OS section of the user agent text
std::string GetExtraOSUserAgentInfo();
class AwContentClient : public content::ContentClient {
// ContentClient implementation.
std::string GetProduct() const override;
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;
bool CanSendWhileSwappedOut(const IPC::Message* message) override;
void SetGpuInfo(const gpu::GPUInfo& gpu_info) override;
const std::string& gpu_fingerprint() const { return gpu_fingerprint_; }
std::string gpu_fingerprint_;
} // namespace android_webview