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

Side by Side Diff: trunk/src/content/browser/renderer_host/pepper/pepper_file_ref_host.h

Issue 60323002: Revert 232547 "Pepper: Move FileIO host from renderer to browser." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/public/browser/browser_ppapi_host.h" 11 #include "content/public/browser/browser_ppapi_host.h"
12 #include "ppapi/c/pp_file_info.h" 12 #include "ppapi/c/pp_file_info.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_resource.h" 14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_time.h" 15 #include "ppapi/c/pp_time.h"
16 #include "ppapi/host/host_message_context.h" 16 #include "ppapi/host/host_message_context.h"
17 #include "ppapi/host/resource_host.h" 17 #include "ppapi/host/resource_host.h"
18 #include "webkit/browser/fileapi/file_system_url.h" 18 #include "webkit/browser/fileapi/file_system_url.h"
19 19
20 namespace content { 20 namespace content {
21
21 class PepperFileRefHost; 22 class PepperFileRefHost;
22 23
23 // Internal and external filesystems have very different codepaths for 24 // Internal and external filesystems have very different codepaths for
24 // performing FileRef operations. The logic is split into separate classes 25 // performing FileRef operations. The logic is split into separate classes
25 // to make it easier to read. 26 // to make it easier to read.
26 class PepperFileRefBackend { 27 class PepperFileRefBackend {
27 public: 28 public:
28 virtual ~PepperFileRefBackend(); 29 virtual ~PepperFileRefBackend();
29 30
30 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context, 31 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 BrowserPpapiHost* host_; 102 BrowserPpapiHost* host_;
102 scoped_ptr<PepperFileRefBackend> backend_; 103 scoped_ptr<PepperFileRefBackend> backend_;
103 PP_FileSystemType fs_type_; 104 PP_FileSystemType fs_type_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(PepperFileRefHost); 106 DISALLOW_COPY_AND_ASSIGN(PepperFileRefHost);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace content
109 110
110 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 111 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698