OLD | NEW |
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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Returns the number of currently stored filesystems. | 114 // Returns the number of currently stored filesystems. |
115 size_t GetFileSystemCount() const; | 115 size_t GetFileSystemCount() const; |
116 | 116 |
117 // Returns the current list of filesystems. | 117 // Returns the current list of filesystems. |
118 const std::list<FileSystemInfo>& GetFileSystemInfo() { | 118 const std::list<FileSystemInfo>& GetFileSystemInfo() { |
119 return file_system_info_; | 119 return file_system_info_; |
120 } | 120 } |
121 | 121 |
122 // BrowsingDataFileSystemHelper implementation. | 122 // BrowsingDataFileSystemHelper implementation. |
123 virtual void StartFetching(const base::Callback< | 123 virtual void StartFetching(const base::Callback< |
124 void(const std::list<FileSystemInfo>&)>& callback) OVERRIDE; | 124 void(const std::list<FileSystemInfo>&)>& callback) override; |
125 | 125 |
126 // Note that this doesn't actually have an implementation for this canned | 126 // Note that this doesn't actually have an implementation for this canned |
127 // class. It hasn't been necessary for anything that uses the canned | 127 // class. It hasn't been necessary for anything that uses the canned |
128 // implementation, as the canned class is only used in tests, or in read-only | 128 // implementation, as the canned class is only used in tests, or in read-only |
129 // contexts (like the non-modal cookie dialog). | 129 // contexts (like the non-modal cookie dialog). |
130 virtual void DeleteFileSystemOrigin(const GURL& origin) OVERRIDE {} | 130 virtual void DeleteFileSystemOrigin(const GURL& origin) override {} |
131 | 131 |
132 private: | 132 private: |
133 virtual ~CannedBrowsingDataFileSystemHelper(); | 133 virtual ~CannedBrowsingDataFileSystemHelper(); |
134 | 134 |
135 // Holds the current list of filesystems returned to the client. | 135 // Holds the current list of filesystems returned to the client. |
136 std::list<FileSystemInfo> file_system_info_; | 136 std::list<FileSystemInfo> file_system_info_; |
137 | 137 |
138 // The callback passed in at the beginning of the StartFetching workflow so | 138 // The callback passed in at the beginning of the StartFetching workflow so |
139 // that it can be triggered via NotifyOnUIThread. | 139 // that it can be triggered via NotifyOnUIThread. |
140 base::Callback<void(const std::list<FileSystemInfo>&)> completion_callback_; | 140 base::Callback<void(const std::list<FileSystemInfo>&)> completion_callback_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataFileSystemHelper); | 142 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataFileSystemHelper); |
143 }; | 143 }; |
144 | 144 |
145 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 145 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
OLD | NEW |