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

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

Issue 10681006: Add ppapi interface for setting crash data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months 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) 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 #include "googleurl/src/gurl.h"
11
10 namespace ppapi { 12 namespace ppapi {
11 namespace proxy { 13 namespace proxy {
12 14
13 class PPAPI_PROXY_EXPORT PluginProxyDelegate { 15 class PPAPI_PROXY_EXPORT PluginProxyDelegate {
14 public: 16 public:
15 virtual ~PluginProxyDelegate() {} 17 virtual ~PluginProxyDelegate() {}
16 18
17 // Sends the given message to the browser. Identical semantics to IPC::Sender 19 // Sends the given message to the browser. Identical semantics to IPC::Sender
18 // interface. 20 // interface.
19 virtual bool SendToBrowser(IPC::Message* msg) = 0; 21 virtual bool SendToBrowser(IPC::Message* msg) = 0;
20 22
21 // Returns the language code of the current UI language. 23 // Returns the language code of the current UI language.
22 virtual std::string GetUILanguage() = 0; 24 virtual std::string GetUILanguage() = 0;
23 25
24 // Performs Windows-specific font caching in the browser for the given 26 // Performs Windows-specific font caching in the browser for the given
25 // LOGFONTW. Does nothing on non-Windows platforms. 27 // LOGFONTW. Does nothing on non-Windows platforms.
26 virtual void PreCacheFont(const void* logfontw) = 0; 28 virtual void PreCacheFont(const void* logfontw) = 0;
29
30 // Set the active url which is reported by breakpad.
yzshen1 2012/06/26 22:44:28 nit: - Set -> Sets - I think you can forward decla
raymes 2012/06/26 23:16:56 Done.
31 virtual void SetActiveURL(const GURL& url) = 0;
27 }; 32 };
28 33
29 } // namespace proxy 34 } // namespace proxy
30 } // namespace ppapi 35 } // namespace ppapi
31 36
32 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 37 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698