Android WebView: build debug/release based on variant.
[chromium-blink-merge.git] / ppapi / proxy / plugin_proxy_delegate.h
blobf2d7759918c4ac41233220388914fb62ad666836
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 file.
5 #ifndef PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
6 #define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
8 #include <string>
10 namespace IPC {
11 class Sender;
14 namespace ppapi {
15 namespace proxy {
17 class PPAPI_PROXY_EXPORT PluginProxyDelegate {
18 public:
19 virtual ~PluginProxyDelegate() {}
21 // Returns the channel for sending to the browser.
22 // Note: The returned sender must be thread-safe. It might be used while the
23 // proxy lock is not acquired. Please see the implementation of
24 // PluginGlobals::BrowserSender.
25 virtual IPC::Sender* GetBrowserSender() = 0;
27 // Returns the language code of the current UI language.
28 virtual std::string GetUILanguage() = 0;
30 // Performs Windows-specific font caching in the browser for the given
31 // LOGFONTW. Does nothing on non-Windows platforms.
32 // Note: This method must be thread-safe.
33 virtual void PreCacheFont(const void* logfontw) = 0;
35 // Sets the active url which is reported by breakpad.
36 virtual void SetActiveURL(const std::string& url) = 0;
39 } // namespace proxy
40 } // namespace ppapi
42 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_