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

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

Issue 630883002: replace OVERRIDE and FINAL with override and final in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/file_io_resource.h ('k') | ppapi/proxy/file_ref_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILE_MAPPING_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FILE_MAPPING_RESOURCE_H_
6 #define PPAPI_PROXY_FILE_MAPPING_RESOURCE_H_ 6 #define PPAPI_PROXY_FILE_MAPPING_RESOURCE_H_
7 7
8 #include "ppapi/proxy/file_io_resource.h" 8 #include "ppapi/proxy/file_io_resource.h"
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
11 #include "ppapi/thunk/ppb_file_mapping_api.h" 11 #include "ppapi/thunk/ppb_file_mapping_api.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace proxy { 14 namespace proxy {
15 15
16 // The proxy-side resource for PPB_FileMapping. 16 // The proxy-side resource for PPB_FileMapping.
17 class PPAPI_PROXY_EXPORT FileMappingResource 17 class PPAPI_PROXY_EXPORT FileMappingResource
18 : public PluginResource, 18 : public PluginResource,
19 public thunk::PPB_FileMapping_API { 19 public thunk::PPB_FileMapping_API {
20 public: 20 public:
21 FileMappingResource(Connection connection, PP_Instance instance); 21 FileMappingResource(Connection connection, PP_Instance instance);
22 22
23 private: 23 private:
24 virtual ~FileMappingResource(); 24 virtual ~FileMappingResource();
25 25
26 // Resource implementation. 26 // Resource implementation.
27 virtual thunk::PPB_FileMapping_API* AsPPB_FileMapping_API() OVERRIDE; 27 virtual thunk::PPB_FileMapping_API* AsPPB_FileMapping_API() override;
28 28
29 // PPB_FileMapping_API implementation. 29 // PPB_FileMapping_API implementation.
30 virtual int32_t Map(PP_Instance instance, 30 virtual int32_t Map(PP_Instance instance,
31 PP_Resource file_io, 31 PP_Resource file_io,
32 int64_t length, 32 int64_t length,
33 uint32_t protection, 33 uint32_t protection,
34 uint32_t flags, 34 uint32_t flags,
35 int64_t offset, 35 int64_t offset,
36 void** address, 36 void** address,
37 scoped_refptr<TrackedCallback> callback) OVERRIDE; 37 scoped_refptr<TrackedCallback> callback) override;
38 virtual int32_t Unmap(PP_Instance instance, 38 virtual int32_t Unmap(PP_Instance instance,
39 const void* address, 39 const void* address,
40 int64_t length, 40 int64_t length,
41 scoped_refptr<TrackedCallback> callback) OVERRIDE; 41 scoped_refptr<TrackedCallback> callback) override;
42 virtual int64_t GetMapPageSize(PP_Instance instance) OVERRIDE; 42 virtual int64_t GetMapPageSize(PP_Instance instance) override;
43 43
44 struct MapResult { 44 struct MapResult {
45 MapResult() : result(PP_ERROR_FAILED), address(NULL) { 45 MapResult() : result(PP_ERROR_FAILED), address(NULL) {
46 } 46 }
47 int32_t result; 47 int32_t result;
48 void* address; 48 void* address;
49 }; 49 };
50 void OnMapCompleted(void** mapped_address_out_param, 50 void OnMapCompleted(void** mapped_address_out_param,
51 int64_t length, 51 int64_t length,
52 scoped_refptr<TrackedCallback> callback, 52 scoped_refptr<TrackedCallback> callback,
(...skipping 15 matching lines...) Expand all
68 // on the main thread with the lock. 68 // on the main thread with the lock.
69 static int64_t DoGetMapPageSize(); 69 static int64_t DoGetMapPageSize();
70 70
71 DISALLOW_COPY_AND_ASSIGN(FileMappingResource); 71 DISALLOW_COPY_AND_ASSIGN(FileMappingResource);
72 }; 72 };
73 73
74 } // namespace proxy 74 } // namespace proxy
75 } // namespace ppapi 75 } // namespace ppapi
76 76
77 #endif // PPAPI_PROXY_FILE_MAPPING_RESOURCE_H_ 77 #endif // PPAPI_PROXY_FILE_MAPPING_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/file_io_resource.h ('k') | ppapi/proxy/file_ref_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698