Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: ppapi/proxy/plugin_proxy_delegate.h

Issue 11299147: Pepper proxy: make the browser sender handle the proxy lock properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 IPC { 10 namespace IPC {
11 class Sender; 11 class Sender;
12 } 12 }
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 class PPAPI_PROXY_EXPORT PluginProxyDelegate { 17 class PPAPI_PROXY_EXPORT PluginProxyDelegate {
18 public: 18 public:
19 virtual ~PluginProxyDelegate() {} 19 virtual ~PluginProxyDelegate() {}
20 20
21 // Sends the given message to the browser. Identical semantics to IPC::Sender
22 // interface. New code should use GetBrowserSender instead.
23 // TODO(brettw) remove this.
24 virtual bool SendToBrowser(IPC::Message* msg) = 0;
25
26 // Returns the channel for sending to the browser. 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.
27 virtual IPC::Sender* GetBrowserSender() = 0; 25 virtual IPC::Sender* GetBrowserSender() = 0;
28 26
29 // Returns the language code of the current UI language. 27 // Returns the language code of the current UI language.
30 virtual std::string GetUILanguage() = 0; 28 virtual std::string GetUILanguage() = 0;
31 29
32 // Performs Windows-specific font caching in the browser for the given 30 // Performs Windows-specific font caching in the browser for the given
33 // LOGFONTW. Does nothing on non-Windows platforms. 31 // LOGFONTW. Does nothing on non-Windows platforms.
32 // Note: This method must be thread-safe.
34 virtual void PreCacheFont(const void* logfontw) = 0; 33 virtual void PreCacheFont(const void* logfontw) = 0;
35 34
36 // Sets the active url which is reported by breakpad. 35 // Sets the active url which is reported by breakpad.
37 virtual void SetActiveURL(const std::string& url) = 0; 36 virtual void SetActiveURL(const std::string& url) = 0;
38 }; 37 };
39 38
40 } // namespace proxy 39 } // namespace proxy
41 } // namespace ppapi 40 } // namespace ppapi
42 41
43 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 42 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698