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

Side by Side Diff: ppapi/proxy/plugin_proxy_delegate.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) 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 "ppapi/c/pp_file_info.h"
9 #include "ppapi/c/private/ppb_flash_file.h"
10
8 namespace ppapi { 11 namespace ppapi {
9 namespace proxy { 12 namespace proxy {
10 13
11 class PPAPI_PROXY_EXPORT PluginProxyDelegate { 14 class PPAPI_PROXY_EXPORT PluginProxyDelegate {
12 public: 15 public:
13 virtual ~PluginProxyDelegate() {} 16 virtual ~PluginProxyDelegate() {}
14 17
15 // Sends the given message to the browser. Identical semantics to 18 // Sends the given message to the browser. Identical semantics to
16 // IPC::Message::Sender interface. 19 // IPC::Message::Sender interface.
17 virtual bool SendToBrowser(IPC::Message* msg) = 0; 20 virtual bool SendToBrowser(IPC::Message* msg) = 0;
18 21
22 // Send flash file messages to the browser, converting between PPAPI types
23 // and the equivalent platform types.
24 virtual int32_t SendOpenFileRequestToBrowser(
25 const char* path, int32_t mode, PP_FileHandle* file) = 0;
26
27 virtual int32_t SendRenameFileRequestToBrowser(
28 const char* from_path, const char* to_path) = 0;
29
30 virtual int32_t SendDeleteFileOrDirRequestToBrowser(
31 const char* path, PP_Bool recursive) = 0;
32
33 virtual int32_t SendCreateDirRequestToBrowser(const char* path) = 0;
34
35 virtual int32_t SendQueryFileRequestToBrowser(
36 const char* path, PP_FileInfo* info) = 0;
37
38 virtual int32_t SendGetDirContentsRequestToBrowser(
39 const char* path, PP_DirContents_Dev** contents) = 0;
40
19 // Performs Windows-specific font caching in the browser for the given 41 // Performs Windows-specific font caching in the browser for the given
20 // LOGFONTW. Does nothing on non-Windows platforms. 42 // LOGFONTW. Does nothing on non-Windows platforms.
21 virtual void PreCacheFont(const void* logfontw) = 0; 43 virtual void PreCacheFont(const void* logfontw) = 0;
22 }; 44 };
23 45
24 } // namespace proxy 46 } // namespace proxy
25 } // namespace ppapi 47 } // namespace ppapi
26 48
27 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_ 49 #endif // PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698