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

Side by Side Diff: components/drive/drive_notification_observer.h

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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
« no previous file with comments | « components/drive/drive_notification_manager.cc ('k') | components/drive/drive_uploader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_ 5 #ifndef COMPONENTS_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_ 6 #define COMPONENTS_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_
7 7
8 namespace drive { 8 namespace drive {
9 9
10 // Interface for classes which need to know when to check Google Drive for 10 // Interface for classes which need to know when to check Google Drive for
11 // updates. 11 // updates.
12 class DriveNotificationObserver { 12 class DriveNotificationObserver {
13 public: 13 public:
14 // Called when a notification from Google Drive is received. 14 // Called when a notification from Google Drive is received.
15 virtual void OnNotificationReceived() = 0; 15 virtual void OnNotificationReceived() = 0;
16 16
17 // Called when XMPP-based push notification is enabled or disabled. 17 // Called when XMPP-based push notification is enabled or disabled.
18 virtual void OnPushNotificationEnabled(bool enabled) {} 18 virtual void OnPushNotificationEnabled(bool enabled) {}
19 19
20 protected: 20 protected:
21 virtual ~DriveNotificationObserver() {} 21 virtual ~DriveNotificationObserver() {}
22 }; 22 };
23 23
24 } // namespace drive 24 } // namespace drive
25 25
26 #endif // CHROME_BROWSER_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_ 26 #endif // COMPONENTS_DRIVE_DRIVE_NOTIFICATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/drive/drive_notification_manager.cc ('k') | components/drive/drive_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698