| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Ensures that the active install is not deregistered upon destruction. This | 43 // Ensures that the active install is not deregistered upon destruction. This |
| 44 // may be necessary if the extension install outlives the lifetime of this | 44 // may be necessary if the extension install outlives the lifetime of this |
| 45 // instance. | 45 // instance. |
| 46 void CancelDeregister(); | 46 void CancelDeregister(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 void Init(); | 49 void Init(); |
| 50 | 50 |
| 51 // InstallObserver implementation. | 51 // InstallObserver implementation. |
| 52 virtual void OnShutdown() OVERRIDE; | 52 virtual void OnShutdown() override; |
| 53 | 53 |
| 54 InstallTracker* tracker_; | 54 InstallTracker* tracker_; |
| 55 ScopedObserver<InstallTracker, InstallObserver> tracker_observer_; | 55 ScopedObserver<InstallTracker, InstallObserver> tracker_observer_; |
| 56 std::string extension_id_; | 56 std::string extension_id_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(ScopedActiveInstall); | 58 DISALLOW_COPY_AND_ASSIGN(ScopedActiveInstall); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace extensions | 61 } // namespace extensions |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ | 63 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVE_INSTALL_DATA_H_ |
| OLD | NEW |