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

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

Issue 6667010: Add a console interface for logging to the JS console from a PPAPI plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_console_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_PPB_CONSOLE_PROXY_H_
6 #define PPAPI_PROXY_PPB_CONSOLE_PROXY_H_
7
8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/proxy/interface_proxy.h"
11 #include "ppapi/proxy/serialized_var.h"
12
13 struct PPB_Console_Dev;
14
15 namespace pp {
16 namespace proxy {
17
18 class PPB_Console_Proxy : public InterfaceProxy {
19 public:
20 PPB_Console_Proxy(Dispatcher* dispatcher, const void* target_interface);
21 virtual ~PPB_Console_Proxy();
22
23 static const Info* GetInfo();
24
25 const PPB_Console_Dev* ppb_console_target() const {
26 return static_cast<const PPB_Console_Dev*>(target_interface());
27 }
28
29 // InterfaceProxy implementation.
30 virtual bool OnMessageReceived(const IPC::Message& msg);
31
32 private:
33 // Message handlers.
34 void OnMsgLog(PP_Instance instance,
35 int log_level,
36 SerializedVarReceiveInput value);
37 void OnMsgLogWithSource(PP_Instance instance,
38 int log_level,
39 SerializedVarReceiveInput source,
40 SerializedVarReceiveInput value);
41
42 DISALLOW_COPY_AND_ASSIGN(PPB_Console_Proxy);
43 };
44
45 } // namespace proxy
46 } // namespace pp
47
48 #endif // PPAPI_PROXY_PPB_CONSOLE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_console_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698