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

Side by Side Diff: services/file/file_system.h

Issue 2600153003: Fix memory leak in file service. (Closed)
Patch Set: Created 3 years, 11 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 | « services/file/file_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_FILE_FILE_SYSTEM_H_ 5 #ifndef SERVICES_FILE_FILE_SYSTEM_H_
6 #define SERVICES_FILE_FILE_SYSTEM_H_ 6 #define SERVICES_FILE_FILE_SYSTEM_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "components/filesystem/public/interfaces/directory.mojom.h" 9 #include "components/filesystem/public/interfaces/directory.mojom.h"
10 #include "mojo/public/cpp/bindings/interface_request.h"
11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 #include "services/file/public/interfaces/file_system.mojom.h" 10 #include "services/file/public/interfaces/file_system.mojom.h"
13 #include "services/service_manager/public/cpp/connection.h"
14 11
15 namespace filesystem { 12 namespace filesystem {
16 class LockTable; 13 class LockTable;
17 } 14 }
18 15
19 namespace file { 16 namespace file {
20 17
21 // A service which serves directories to callers. 18 // A service which serves directories to callers.
22 class FileSystem : public mojom::FileSystem { 19 class FileSystem : public mojom::FileSystem {
23 public: 20 public:
(...skipping 11 matching lines...) Expand all
35 private: 32 private:
36 scoped_refptr<filesystem::LockTable> lock_table_; 33 scoped_refptr<filesystem::LockTable> lock_table_;
37 base::FilePath path_; 34 base::FilePath path_;
38 35
39 DISALLOW_COPY_AND_ASSIGN(FileSystem); 36 DISALLOW_COPY_AND_ASSIGN(FileSystem);
40 }; 37 };
41 38
42 } // namespace file 39 } // namespace file
43 40
44 #endif // SERVICES_FILE_FILE_SYSTEM_H_ 41 #endif // SERVICES_FILE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « services/file/file_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698