Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / drive / drive_notification_observer.h
blob5f6738f1f29ae3c67c95349c2341d93ad2dd6e4c
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_
8 namespace drive {
10 // Interface for classes which need to know when to check Google Drive for
11 // updates.
12 class DriveNotificationObserver {
13 public:
14 // Called when a notification from Google Drive is received.
15 virtual void OnNotificationReceived() = 0;
17 // Called when XMPP-based push notification is enabled or disabled.
18 virtual void OnPushNotificationEnabled(bool enabled) {}
20 protected:
21 virtual ~DriveNotificationObserver() {}
24 } // namespace drive
26 #endif // CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_