diff options
author | kochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-22 06:47:03 +0000 |
---|---|---|
committer | kochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-22 06:47:03 +0000 |
commit | 95e50e7dbefc8c93567d5abe08b71c27ab93588d (patch) | |
tree | 09828dcaefa8b3606021ef691b24e45c2ac9e25b /chrome/browser/chromeos/drive/drive_file_system_interface.h | |
parent | 9d84d62d1f7088ef3dd381b8134587f177bb1c5c (diff) | |
download | chromium_src-95e50e7dbefc8c93567d5abe08b71c27ab93588d.zip chromium_src-95e50e7dbefc8c93567d5abe08b71c27ab93588d.tar.gz chromium_src-95e50e7dbefc8c93567d5abe08b71c27ab93588d.tar.bz2 |
Add interface for telling Drive updates push notification availability.
Even in case we get update notifications from the server,
we poll the updates with less frequency in case updates get lost for some reason.
Use 60 seconds for the polling-only (update notification unavailable) as before, 300 seconds for when update notification is available.
This change applies upon
http://codereview.chromium.org/11146029/
BUG=150005
TEST=open drive in another browser, make a change and see if the change is reflected immediately (<10sec).
Review URL: https://chromiumcodereview.appspot.com/11143033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/drive_file_system_interface.h')
-rw-r--r-- | chrome/browser/chromeos/drive/drive_file_system_interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/drive/drive_file_system_interface.h b/chrome/browser/chromeos/drive/drive_file_system_interface.h index c5bb7eb..f9630d0 100644 --- a/chrome/browser/chromeos/drive/drive_file_system_interface.h +++ b/chrome/browser/chromeos/drive/drive_file_system_interface.h @@ -100,6 +100,9 @@ class DriveFileSystemInterface { virtual void StartPolling() = 0; virtual void StopPolling() = 0; + // Sets the availability of push notification when its status is changed. + virtual void SetPushNotificationEnabled(bool enabled) = 0; + // Notifies the file system was just mounted. virtual void NotifyFileSystemMounted() = 0; |