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

Side by Side Diff: webkit/plugins/ppapi/ppb_file_system_impl.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" 5 #include "webkit/plugins/ppapi/ppb_file_system_impl.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/ppb_file_system.h" 9 #include "ppapi/c/ppb_file_system.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
14 #include "webkit/fileapi/file_system_types.h" 14 #include "webkit/fileapi/file_system_types.h"
15 #include "webkit/plugins/ppapi/common.h" 15 #include "webkit/plugins/ppapi/common.h"
16 #include "webkit/plugins/ppapi/file_callbacks.h" 16 #include "webkit/plugins/ppapi/file_callbacks.h"
17 #include "webkit/plugins/ppapi/plugin_delegate.h" 17 #include "webkit/plugins/ppapi/plugin_delegate.h"
18 #include "webkit/plugins/ppapi/plugin_module.h" 18 #include "webkit/plugins/ppapi/plugin_module.h"
19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
20 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" 20 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
21 #include "webkit/plugins/ppapi/resource_helper.h" 21 #include "webkit/plugins/ppapi/resource_helper.h"
22 22
23 using ppapi::thunk::PPB_FileSystem_API; 23 using ppapi::thunk::PPB_FileSystem_API;
24 24
25 namespace webkit { 25 namespace webkit {
26 namespace ppapi { 26 namespace ppapi {
27 27
28 PPB_FileSystem_Impl::PPB_FileSystem_Impl(PP_Instance instance, 28 PPB_FileSystem_Impl::PPB_FileSystem_Impl(PP_Instance instance,
29 PP_FileSystemType type) 29 PP_FileSystemType type)
30 : Resource(instance), 30 : Resource(::ppapi::OBJECT_IS_IMPL, instance),
31 type_(type), 31 type_(type),
32 opened_(false), 32 opened_(false),
33 called_open_(false) { 33 called_open_(false) {
34 DCHECK(type_ != PP_FILESYSTEMTYPE_INVALID); 34 DCHECK(type_ != PP_FILESYSTEMTYPE_INVALID);
35 } 35 }
36 36
37 PPB_FileSystem_Impl::~PPB_FileSystem_Impl() { 37 PPB_FileSystem_Impl::~PPB_FileSystem_Impl() {
38 } 38 }
39 39
40 // static 40 // static
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return PP_ERROR_FAILED; 88 return PP_ERROR_FAILED;
89 return PP_OK_COMPLETIONPENDING; 89 return PP_OK_COMPLETIONPENDING;
90 } 90 }
91 91
92 PP_FileSystemType PPB_FileSystem_Impl::GetType() { 92 PP_FileSystemType PPB_FileSystem_Impl::GetType() {
93 return type_; 93 return type_;
94 } 94 }
95 95
96 } // namespace ppapi 96 } // namespace ppapi
97 } // namespace webkit 97 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698