Add interface for telling Drive updates push notification availability.
commit95e50e7dbefc8c93567d5abe08b71c27ab93588d
authorkochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 22 Oct 2012 06:47:03 +0000 (22 06:47 +0000)
committerkochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 22 Oct 2012 06:47:03 +0000 (22 06:47 +0000)
tree09828dcaefa8b3606021ef691b24e45c2ac9e25b
parent9d84d62d1f7088ef3dd381b8134587f177bb1c5c
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
chrome/browser/chromeos/drive/drive_file_system.cc
chrome/browser/chromeos/drive/drive_file_system.h
chrome/browser/chromeos/drive/drive_file_system_interface.h
chrome/browser/chromeos/drive/drive_system_service.cc
chrome/browser/chromeos/drive/drive_system_service.h
chrome/browser/chromeos/drive/mock_drive_file_system.h