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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_external_file_ref_backend.h

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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
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_EXTERNAL_FILE_REF_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXTERNAL_FILE_REF_BACKEND_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXTERNAL_FILE_REF_BACKEND_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXTERNAL_FILE_REF_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 11 matching lines...) Expand all
22 // Implementations of FileRef operations for external filesystems. 22 // Implementations of FileRef operations for external filesystems.
23 class PepperExternalFileRefBackend : public PepperFileRefBackend { 23 class PepperExternalFileRefBackend : public PepperFileRefBackend {
24 public: 24 public:
25 PepperExternalFileRefBackend(ppapi::host::PpapiHost* host, 25 PepperExternalFileRefBackend(ppapi::host::PpapiHost* host,
26 int render_process_id, 26 int render_process_id,
27 const base::FilePath& path); 27 const base::FilePath& path);
28 virtual ~PepperExternalFileRefBackend(); 28 virtual ~PepperExternalFileRefBackend();
29 29
30 // PepperFileRefBackend overrides. 30 // PepperFileRefBackend overrides.
31 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context, 31 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context,
32 int32_t make_directory_flags) OVERRIDE; 32 int32_t make_directory_flags) override;
33 virtual int32_t Touch(ppapi::host::ReplyMessageContext context, 33 virtual int32_t Touch(ppapi::host::ReplyMessageContext context,
34 PP_Time last_accessed_time, 34 PP_Time last_accessed_time,
35 PP_Time last_modified_time) OVERRIDE; 35 PP_Time last_modified_time) override;
36 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) OVERRIDE; 36 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) override;
37 virtual int32_t Rename(ppapi::host::ReplyMessageContext context, 37 virtual int32_t Rename(ppapi::host::ReplyMessageContext context,
38 PepperFileRefHost* new_file_ref) OVERRIDE; 38 PepperFileRefHost* new_file_ref) override;
39 virtual int32_t Query(ppapi::host::ReplyMessageContext context) OVERRIDE; 39 virtual int32_t Query(ppapi::host::ReplyMessageContext context) override;
40 virtual int32_t ReadDirectoryEntries(ppapi::host::ReplyMessageContext context) 40 virtual int32_t ReadDirectoryEntries(ppapi::host::ReplyMessageContext context)
41 OVERRIDE; 41 override;
42 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context) 42 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context)
43 OVERRIDE; 43 override;
44 virtual storage::FileSystemURL GetFileSystemURL() const OVERRIDE; 44 virtual storage::FileSystemURL GetFileSystemURL() const override;
45 virtual base::FilePath GetExternalFilePath() const OVERRIDE; 45 virtual base::FilePath GetExternalFilePath() const override;
46 46
47 virtual int32_t CanRead() const OVERRIDE; 47 virtual int32_t CanRead() const override;
48 virtual int32_t CanWrite() const OVERRIDE; 48 virtual int32_t CanWrite() const override;
49 virtual int32_t CanCreate() const OVERRIDE; 49 virtual int32_t CanCreate() const override;
50 virtual int32_t CanReadWrite() const OVERRIDE; 50 virtual int32_t CanReadWrite() const override;
51 51
52 private: 52 private:
53 // Generic reply callback. 53 // Generic reply callback.
54 void DidFinish(ppapi::host::ReplyMessageContext reply_context, 54 void DidFinish(ppapi::host::ReplyMessageContext reply_context,
55 const IPC::Message& msg, 55 const IPC::Message& msg,
56 base::File::Error error); 56 base::File::Error error);
57 57
58 // Operation specific callbacks. 58 // Operation specific callbacks.
59 void GetMetadataComplete(ppapi::host::ReplyMessageContext reply_context, 59 void GetMetadataComplete(ppapi::host::ReplyMessageContext reply_context,
60 base::File::Error error, 60 base::File::Error error,
61 const base::File::Info& file_info); 61 const base::File::Info& file_info);
62 62
63 ppapi::host::PpapiHost* host_; 63 ppapi::host::PpapiHost* host_;
64 base::FilePath path_; 64 base::FilePath path_;
65 int render_process_id_; 65 int render_process_id_;
66 66
67 scoped_refptr<base::TaskRunner> task_runner_; 67 scoped_refptr<base::TaskRunner> task_runner_;
68 68
69 base::WeakPtrFactory<PepperExternalFileRefBackend> weak_factory_; 69 base::WeakPtrFactory<PepperExternalFileRefBackend> weak_factory_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(PepperExternalFileRefBackend); 71 DISALLOW_COPY_AND_ASSIGN(PepperExternalFileRefBackend);
72 }; 72 };
73 73
74 } // namespace content 74 } // namespace content
75 75
76 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXTERNAL_FILE_REF_BACKEND _H_ 76 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXTERNAL_FILE_REF_BACKEND _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698