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

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

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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
« no previous file with comments | « ppapi/proxy/flash_drm_resource.h ('k') | ppapi/proxy/flash_font_file_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PPAPI_PROXY_FLASH_FILE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FLASH_FILE_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_FILE_RESOURCE_H_ 6 #define PPAPI_PROXY_FLASH_FILE_RESOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
11 #include "ppapi/proxy/plugin_resource.h" 11 #include "ppapi/proxy/plugin_resource.h"
12 #include "ppapi/shared_impl/file_path.h" 12 #include "ppapi/shared_impl/file_path.h"
13 #include "ppapi/thunk/ppb_flash_file_api.h" 13 #include "ppapi/thunk/ppb_flash_file_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 namespace proxy { 16 namespace proxy {
17 17
18 class FlashFileResource 18 class FlashFileResource
19 : public PluginResource, 19 : public PluginResource,
20 public thunk::PPB_Flash_File_API { 20 public thunk::PPB_Flash_File_API {
21 public: 21 public:
22 FlashFileResource(Connection connection, PP_Instance instance); 22 FlashFileResource(Connection connection, PP_Instance instance);
23 virtual ~FlashFileResource(); 23 ~FlashFileResource() override;
24 24
25 // Resource overrides. 25 // Resource overrides.
26 virtual thunk::PPB_Flash_File_API* AsPPB_Flash_File_API() override; 26 thunk::PPB_Flash_File_API* AsPPB_Flash_File_API() override;
27 27
28 // PPB_Flash_Functions_API. 28 // PPB_Flash_Functions_API.
29 virtual int32_t OpenFile(PP_Instance instance, 29 int32_t OpenFile(PP_Instance instance,
30 const char* path, 30 const char* path,
31 int32_t mode, 31 int32_t mode,
32 PP_FileHandle* file) override; 32 PP_FileHandle* file) override;
33 virtual int32_t RenameFile(PP_Instance instance, 33 int32_t RenameFile(PP_Instance instance,
34 const char* path_from, 34 const char* path_from,
35 const char* path_to) override; 35 const char* path_to) override;
36 virtual int32_t DeleteFileOrDir(PP_Instance instance, 36 int32_t DeleteFileOrDir(PP_Instance instance,
37 const char* path, 37 const char* path,
38 PP_Bool recursive) override; 38 PP_Bool recursive) override;
39 virtual int32_t CreateDir(PP_Instance instance, const char* path) override; 39 int32_t CreateDir(PP_Instance instance, const char* path) override;
40 virtual int32_t QueryFile(PP_Instance instance, 40 int32_t QueryFile(PP_Instance instance,
41 const char* path, 41 const char* path,
42 PP_FileInfo* info) override; 42 PP_FileInfo* info) override;
43 virtual int32_t GetDirContents(PP_Instance instance, 43 int32_t GetDirContents(PP_Instance instance,
44 const char* path, 44 const char* path,
45 PP_DirContents_Dev** contents) override; 45 PP_DirContents_Dev** contents) override;
46 virtual void FreeDirContents(PP_Instance instance, 46 void FreeDirContents(PP_Instance instance,
47 PP_DirContents_Dev* contents) override; 47 PP_DirContents_Dev* contents) override;
48 virtual int32_t CreateTemporaryFile(PP_Instance instance, 48 int32_t CreateTemporaryFile(PP_Instance instance,
49 PP_FileHandle* file) override;
50 virtual int32_t OpenFileRef(PP_Instance instance,
51 PP_Resource file_ref,
52 int32_t mode,
53 PP_FileHandle* file) override; 49 PP_FileHandle* file) override;
54 virtual int32_t QueryFileRef(PP_Instance instance, 50 int32_t OpenFileRef(PP_Instance instance,
55 PP_Resource file_ref, 51 PP_Resource file_ref,
56 PP_FileInfo* info) override; 52 int32_t mode,
53 PP_FileHandle* file) override;
54 int32_t QueryFileRef(PP_Instance instance,
55 PP_Resource file_ref,
56 PP_FileInfo* info) override;
57 57
58 private: 58 private:
59 int32_t OpenFileHelper(const std::string& path, 59 int32_t OpenFileHelper(const std::string& path,
60 PepperFilePath::Domain domain_type, 60 PepperFilePath::Domain domain_type,
61 int32_t mode, 61 int32_t mode,
62 PP_FileHandle* file); 62 PP_FileHandle* file);
63 int32_t QueryFileHelper(const std::string& path, 63 int32_t QueryFileHelper(const std::string& path,
64 PepperFilePath::Domain domain_type, 64 PepperFilePath::Domain domain_type,
65 PP_FileInfo* info); 65 PP_FileInfo* info);
66 66
67 DISALLOW_COPY_AND_ASSIGN(FlashFileResource); 67 DISALLOW_COPY_AND_ASSIGN(FlashFileResource);
68 }; 68 };
69 69
70 } // namespace proxy 70 } // namespace proxy
71 } // namespace ppapi 71 } // namespace ppapi
72 72
73 #endif // PPAPI_PROXY_FLASH_FILE_RESOURCE_H_ 73 #endif // PPAPI_PROXY_FLASH_FILE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_drm_resource.h ('k') | ppapi/proxy/flash_font_file_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698