summaryrefslogtreecommitdiffstats
path: root/extensions/browser/update_observer.h
blob: 68c6e22368ebaadc38cb3043f3bdf77ecc034131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_
#define EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_

#include <string>

namespace extensions {
class Extension;

class UpdateObserver {
 public:
  // Invoked when an app update is available.
  virtual void OnAppUpdateAvailable(const Extension* extension) = 0;

  // Invoked when Chrome update is available.
  virtual void OnChromeUpdateAvailable() = 0;

 protected:
  virtual ~UpdateObserver() {}
};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_