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

Side by Side Diff: chrome/browser/extensions/update_install_gate.h

Issue 1890163004: extensions: Abstract out install delay strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for comments in #4 Created 4 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATE_INSTALL_GATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATE_INSTALL_GATE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/extensions/install_gate.h"
10
11 class ExtensionService;
12
13 namespace extensions {
14
15 // Delays an extension update if the old version is not idle.
16 class UpdateInstallGate : public InstallGate {
17 public:
18 explicit UpdateInstallGate(ExtensionService* service);
19
20 // InstallGate:
21 Action ShouldDelay(const Extension* extension,
22 bool install_immediately) override;
23
24 private:
25 // Not owned.
26 ExtensionService* const service_;
27
28 DISALLOW_COPY_AND_ASSIGN(UpdateInstallGate);
29 };
30
31 } // namespace extensions
32
33 #endif // CHROME_BROWSER_EXTENSIONS_UPDATE_INSTALL_GATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/shared_module_service.cc ('k') | chrome/browser/extensions/update_install_gate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698