Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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_APP_DATA_MIGRATOR_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_DATA_MIGRATOR_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 #include "base/macros.h" | |
| 10 | |
| 11 class Profile; | |
| 12 | |
| 13 namespace extensions { | |
| 14 class Extension; | |
| 15 class ExtensionRegistry; | |
| 16 | |
| 17 // This class migrates legacy packaged app data in the general storage | |
| 18 // partition to an isolated storage partition. This happens when a legacy | |
| 19 // packaged app is upgraded to a platform app. See http://crbug.com/302577 | |
| 20 class AppDataMigrator { | |
| 21 public: | |
| 22 AppDataMigrator(Profile* profile, ExtensionRegistry* registry); | |
| 23 | |
| 24 bool NeedsMigration(const Extension* old, const Extension* extension); | |
|
cmumford
2015/01/06 15:30:26
The name suggests this can be a const method - can
| |
| 25 | |
| 26 void DoMigrationAndReply(const Extension* old, | |
| 27 const Extension* extension, | |
| 28 const base::Closure& reply); | |
| 29 | |
| 30 private: | |
| 31 ExtensionRegistry* registry_; | |
| 32 | |
| 33 Profile* profile_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(AppDataMigrator); | |
| 36 }; | |
| 37 | |
| 38 } // namespace extensions | |
| 39 #endif // CHROME_BROWSER_EXTENSIONS_APP_DATA_MIGRATOR_H_ | |
| OLD | NEW |