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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_files.h

Issue 10352004: gdata: Implement periodic file system update checks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add 2 more DCHECKs to make sure we're not starting/stopping timer when it is already started/stoppe… Created 8 years, 7 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 (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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 // Find a child by its name. 318 // Find a child by its name.
319 GDataEntry* FindChild(const FilePath::StringType& file_name) const; 319 GDataEntry* FindChild(const FilePath::StringType& file_name) const;
320 320
321 // Removes the entry from its children list and destroys the entry instance. 321 // Removes the entry from its children list and destroys the entry instance.
322 bool RemoveEntry(GDataEntry* entry); 322 bool RemoveEntry(GDataEntry* entry);
323 323
324 // Removes children elements. 324 // Removes children elements.
325 void RemoveChildren(); 325 void RemoveChildren();
326 326
327 // Checks if directory content needs to be refreshed from the server.
328 bool NeedsRefresh() const;
329
330 // Last refresh time. 327 // Last refresh time.
331 const base::Time& refresh_time() const { return refresh_time_; } 328 const base::Time& refresh_time() const { return refresh_time_; }
332 void set_refresh_time(const base::Time& time) { refresh_time_ = time; } 329 void set_refresh_time(const base::Time& time) { refresh_time_ = time; }
333 // Url for this feed. 330 // Url for this feed.
334 const GURL& start_feed_url() const { return start_feed_url_; } 331 const GURL& start_feed_url() const { return start_feed_url_; }
335 void set_start_feed_url(const GURL& url) { start_feed_url_ = url; } 332 void set_start_feed_url(const GURL& url) { start_feed_url_ = url; }
336 // Continuing feed's url. 333 // Continuing feed's url.
337 const GURL& next_feed_url() const { return next_feed_url_; } 334 const GURL& next_feed_url() const { return next_feed_url_; }
338 void set_next_feed_url(const GURL& url) { next_feed_url_ = url; } 335 void set_next_feed_url(const GURL& url) { next_feed_url_ = url; }
339 // Upload url is an entry point for initialization of file upload. 336 // Upload url is an entry point for initialization of file upload.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 base::Time last_serialized_; 499 base::Time last_serialized_;
503 int largest_changestamp_; 500 int largest_changestamp_;
504 size_t serialized_size_; 501 size_t serialized_size_;
505 502
506 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); 503 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory);
507 }; 504 };
508 505
509 } // namespace gdata 506 } // namespace gdata
510 507
511 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ 508 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698