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

Unified Diff: ppapi/proxy/plugin_dispatcher.h

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/plugin_dispatcher.h
diff --git a/ppapi/proxy/plugin_dispatcher.h b/ppapi/proxy/plugin_dispatcher.h
index b2fbeec549dcab28665844c5befd351b1d64ddef..3490bc005000571ceb5cb2c080cf1dbc21951b48 100644
--- a/ppapi/proxy/plugin_dispatcher.h
+++ b/ppapi/proxy/plugin_dispatcher.h
@@ -25,11 +25,10 @@ class WaitableEvent;
}
namespace ppapi {
+
struct Preferences;
class Resource;
-}
-namespace pp {
namespace proxy {
// Used to keep track of per-instance data.
@@ -51,7 +50,7 @@ class PluginDispatcher : public Dispatcher {
// Returns the WebKit forwarding object used to make calls into WebKit.
// Necessary only on the plugin side.
- virtual ppapi::WebKitForwarding* GetWebKitForwarding() = 0;
+ virtual WebKitForwarding* GetWebKitForwarding() = 0;
// Posts the given task to the WebKit thread associated with this plugin
// process. The WebKit thread should be lazily created if it does not
@@ -87,7 +86,7 @@ class PluginDispatcher : public Dispatcher {
// Same as GetForInstance but retrieves the instance from the given resource
// object as a convenience. Returns NULL on failure.
- static PluginDispatcher* GetForResource(const ppapi::Resource* resource);
+ static PluginDispatcher* GetForResource(const Resource* resource);
static const void* GetInterfaceFromDispatcher(const char* interface);
@@ -123,17 +122,16 @@ class PluginDispatcher : public Dispatcher {
bool SendToBrowser(IPC::Message* msg);
// Returns the WebKitForwarding object used to forward events to WebKit.
- ppapi::WebKitForwarding* GetWebKitForwarding();
+ WebKitForwarding* GetWebKitForwarding();
// Returns the Preferences.
- const ppapi::Preferences& preferences() const { return preferences_; }
+ const Preferences& preferences() const { return preferences_; }
// Returns the "new-style" function API for the given interface ID, creating
// it if necessary.
// TODO(brettw) this is in progress. It should be merged with the target
// proxies so there is one list to consult.
- ppapi::FunctionGroupBase* GetFunctionAPI(
- pp::proxy::InterfaceID id);
+ FunctionGroupBase* GetFunctionAPI(InterfaceID id);
uint32 plugin_dispatcher_id() const { return plugin_dispatcher_id_; }
@@ -146,7 +144,7 @@ class PluginDispatcher : public Dispatcher {
// IPC message handlers.
void OnMsgSupportsInterface(const std::string& interface_name, bool* result);
- void OnMsgSetPreferences(const ::ppapi::Preferences& prefs);
+ void OnMsgSetPreferences(const Preferences& prefs);
PluginDelegate* plugin_delegate_;
@@ -157,8 +155,7 @@ class PluginDispatcher : public Dispatcher {
// Function proxies created for "new-style" FunctionGroups.
// TODO(brettw) this is in progress. It should be merged with the target
// proxies so there is one list to consult.
- scoped_ptr< ::ppapi::FunctionGroupBase >
- function_proxies_[INTERFACE_ID_COUNT];
+ scoped_ptr<FunctionGroupBase> function_proxies_[INTERFACE_ID_COUNT];
typedef base::hash_map<PP_Instance, InstanceData> InstanceDataMap;
InstanceDataMap instance_map_;
@@ -166,7 +163,7 @@ class PluginDispatcher : public Dispatcher {
// The preferences sent from the host. We only want to set this once, which
// is what the received_preferences_ indicates. See OnMsgSetPreferences.
bool received_preferences_;
- ppapi::Preferences preferences_;
+ Preferences preferences_;
uint32 plugin_dispatcher_id_;
@@ -174,6 +171,6 @@ class PluginDispatcher : public Dispatcher {
};
} // namespace proxy
-} // namespace pp
+} // namespace ppapi
#endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698