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_CHROMEOS_GDATA_GDATA_FILES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 329 |
330 // Takes over all entries from |dir|. | 330 // Takes over all entries from |dir|. |
331 bool TakeOverEntries(GDataDirectory* dir); | 331 bool TakeOverEntries(GDataDirectory* dir); |
332 | 332 |
333 // Find a child by its name. | 333 // Find a child by its name. |
334 GDataEntry* FindChild(const FilePath::StringType& file_name) const; | 334 GDataEntry* FindChild(const FilePath::StringType& file_name) const; |
335 | 335 |
336 // Removes the entry from its children list and destroys the entry instance. | 336 // Removes the entry from its children list and destroys the entry instance. |
337 bool RemoveEntry(GDataEntry* entry); | 337 bool RemoveEntry(GDataEntry* entry); |
338 | 338 |
339 // Removes children elements. | 339 // Removes child elements. |
340 void RemoveChildren(); | 340 void RemoveChildren(); |
| 341 void RemoveChildFiles(); |
| 342 void RemoveChildDirectories(); |
341 | 343 |
342 // Last refresh time. | 344 // Last refresh time. |
343 const base::Time& refresh_time() const { return refresh_time_; } | 345 const base::Time& refresh_time() const { return refresh_time_; } |
344 void set_refresh_time(const base::Time& time) { refresh_time_ = time; } | 346 void set_refresh_time(const base::Time& time) { refresh_time_ = time; } |
345 // Url for this feed. | 347 // Url for this feed. |
346 const GURL& start_feed_url() const { return start_feed_url_; } | 348 const GURL& start_feed_url() const { return start_feed_url_; } |
347 void set_start_feed_url(const GURL& url) { start_feed_url_ = url; } | 349 void set_start_feed_url(const GURL& url) { start_feed_url_ = url; } |
348 // Continuing feed's url. | 350 // Continuing feed's url. |
349 const GURL& next_feed_url() const { return next_feed_url_; } | 351 const GURL& next_feed_url() const { return next_feed_url_; } |
350 void set_next_feed_url(const GURL& url) { next_feed_url_ = url; } | 352 void set_next_feed_url(const GURL& url) { next_feed_url_ = url; } |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 base::Time last_serialized_; | 547 base::Time last_serialized_; |
546 int largest_changestamp_; | 548 int largest_changestamp_; |
547 size_t serialized_size_; | 549 size_t serialized_size_; |
548 | 550 |
549 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); | 551 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); |
550 }; | 552 }; |
551 | 553 |
552 } // namespace gdata | 554 } // namespace gdata |
553 | 555 |
554 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 556 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
OLD | NEW |