OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ |
6 #define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ | 6 #define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace ppapi { | 10 namespace ppapi { |
11 namespace proxy { | 11 namespace proxy { |
12 | 12 |
13 class PPAPI_PROXY_EXPORT PluginProxyDelegate { | 13 class PPAPI_PROXY_EXPORT PluginProxyDelegate { |
14 public: | 14 public: |
15 virtual ~PluginProxyDelegate() {} | 15 virtual ~PluginProxyDelegate() {} |
16 | 16 |
17 // Sends the given message to the browser. Identical semantics to IPC::Sender | 17 // Sends the given message to the browser. Identical semantics to IPC::Sender |
18 // interface. | 18 // interface. |
19 virtual bool SendToBrowser(IPC::Message* msg) = 0; | 19 virtual bool SendToBrowser(IPC::Message* msg) = 0; |
20 | 20 |
21 // Returns the language code of the current UI language. | 21 // Returns the language code of the current UI language. |
22 virtual std::string GetUILanguage() = 0; | 22 virtual std::string GetUILanguage() = 0; |
23 | 23 |
24 // Performs Windows-specific font caching in the browser for the given | 24 // Performs Windows-specific font caching in the browser for the given |
25 // LOGFONTW. Does nothing on non-Windows platforms. | 25 // LOGFONTW. Does nothing on non-Windows platforms. |
26 virtual void PreCacheFont(const void* logfontw) = 0; | 26 virtual void PreCacheFont(const void* logfontw) = 0; |
| 27 |
| 28 // Sets the active url which is reported by breakpad. |
| 29 virtual void SetActiveURL(const std::string& url) = 0; |
27 }; | 30 }; |
28 | 31 |
29 } // namespace proxy | 32 } // namespace proxy |
30 } // namespace ppapi | 33 } // namespace ppapi |
31 | 34 |
32 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ | 35 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ |
OLD | NEW |