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

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

Issue 11416214: PPAPI: Move PPB_Console out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_
6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "ppapi/c/dev/ppb_console_dev.h"
18 #include "ppapi/c/pp_rect.h" 17 #include "ppapi/c/pp_rect.h"
19 #include "ppapi/c/pp_instance.h" 18 #include "ppapi/c/pp_instance.h"
19 #include "ppapi/c/ppb_console.h"
20 #include "ppapi/proxy/dispatcher.h" 20 #include "ppapi/proxy/dispatcher.h"
21 #include "ppapi/shared_impl/ppapi_preferences.h" 21 #include "ppapi/shared_impl/ppapi_preferences.h"
22 #include "ppapi/shared_impl/ppb_view_shared.h" 22 #include "ppapi/shared_impl/ppb_view_shared.h"
23 #include "ppapi/shared_impl/tracked_callback.h" 23 #include "ppapi/shared_impl/tracked_callback.h"
24 24
25 namespace ppapi { 25 namespace ppapi {
26 26
27 struct Preferences; 27 struct Preferences;
28 class Resource; 28 class Resource;
29 29
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static PluginDispatcher* GetForResource(const Resource* resource); 114 static PluginDispatcher* GetForResource(const Resource* resource);
115 115
116 // Implements the GetInterface function for the plugin to call to retrieve 116 // Implements the GetInterface function for the plugin to call to retrieve
117 // a browser interface. 117 // a browser interface.
118 static const void* GetBrowserInterface(const char* interface_name); 118 static const void* GetBrowserInterface(const char* interface_name);
119 119
120 // Logs the given log message to the given instance, or, if the instance is 120 // Logs the given log message to the given instance, or, if the instance is
121 // invalid, to all instances associated with all dispatchers. Used for 121 // invalid, to all instances associated with all dispatchers. Used for
122 // global log messages. 122 // global log messages.
123 static void LogWithSource(PP_Instance instance, 123 static void LogWithSource(PP_Instance instance,
124 PP_LogLevel_Dev level, 124 PP_LogLevel level,
125 const std::string& source, 125 const std::string& source,
126 const std::string& value); 126 const std::string& value);
127 127
128 const void* GetPluginInterface(const std::string& interface_name); 128 const void* GetPluginInterface(const std::string& interface_name);
129 129
130 // You must call this function before anything else. Returns true on success. 130 // You must call this function before anything else. Returns true on success.
131 // The delegate pointer must outlive this class, ownership is not 131 // The delegate pointer must outlive this class, ownership is not
132 // transferred. 132 // transferred.
133 bool InitPluginWithChannel(PluginDelegate* delegate, 133 bool InitPluginWithChannel(PluginDelegate* delegate,
134 const IPC::ChannelHandle& channel_handle, 134 const IPC::ChannelHandle& channel_handle,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // incognito mode. 211 // incognito mode.
212 bool incognito_; 212 bool incognito_;
213 213
214 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 214 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
215 }; 215 };
216 216
217 } // namespace proxy 217 } // namespace proxy
218 } // namespace ppapi 218 } // namespace ppapi
219 219
220 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 220 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698