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

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

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 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 #include <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 7
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 117 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
118 base::PlatformFile handle, 118 base::PlatformFile handle,
119 const IPC::SyncChannel& /* channel */, 119 const IPC::SyncChannel& /* channel */,
120 bool should_close_source) OVERRIDE; 120 bool should_close_source) OVERRIDE;
121 121
122 // PluginDispatcher::PluginDelegate implementation. 122 // PluginDispatcher::PluginDelegate implementation.
123 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; 123 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE;
124 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; 124 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE;
125 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; 125 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE;
126 126
127 // PluginPepperDelegate implementation. 127 // PluginProxyDelegate implementation.
128 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; 128 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE;
129 virtual void PreCacheFont(const void* logfontw) OVERRIDE; 129 virtual void PreCacheFont(const void* logfontw) OVERRIDE;
130 virtual int32_t SendOpenFileRequestToBrowser(
131 const char* path, int32_t mode, PP_FileHandle* file) OVERRIDE;
132 virtual int32_t SendRenameFileRequestToBrowser(
133 const char* from_path, const char* to_path) OVERRIDE;
134 virtual int32_t SendDeleteFileOrDirRequestToBrowser(
135 const char* path, PP_Bool recursive) OVERRIDE;
136 virtual int32_t SendCreateDirRequestToBrowser(const char* path) OVERRIDE;
137 virtual int32_t SendQueryFileRequestToBrowser(
138 const char* path, PP_FileInfo* info) OVERRIDE;
139 virtual int32_t SendGetDirContentsRequestToBrowser(
140 const char* path, PP_DirContents_Dev** contents) OVERRIDE;
130 141
131 private: 142 private:
132 base::MessageLoopProxy* ipc_message_loop_; // Weak 143 base::MessageLoopProxy* ipc_message_loop_; // Weak
133 base::WaitableEvent* shutdown_event_; // Weak 144 base::WaitableEvent* shutdown_event_; // Weak
134 std::set<PP_Instance> instance_id_set_; 145 std::set<PP_Instance> instance_id_set_;
135 146
136 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock); 147 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock);
137 }; 148 };
138 149
139 private: 150 private:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // stopping the harnesses. 275 // stopping the harnesses.
265 ProxyTestHarnessBase* remote_harness_; 276 ProxyTestHarnessBase* remote_harness_;
266 ProxyTestHarnessBase* local_harness_; 277 ProxyTestHarnessBase* local_harness_;
267 278
268 base::WaitableEvent channel_created_; 279 base::WaitableEvent channel_created_;
269 base::WaitableEvent shutdown_event_; 280 base::WaitableEvent shutdown_event_;
270 }; 281 };
271 282
272 } // namespace proxy 283 } // namespace proxy
273 } // namespace ppapi 284 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698