| 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_API_WEBSTORE_WEBSTORE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
| 14 #include "chrome/browser/extensions/install_observer.h" | 14 #include "chrome/browser/extensions/install_observer.h" |
| 15 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 15 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
| 16 #include "extensions/browser/browser_context_keyed_api_factory.h" | 16 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 17 #include "extensions/browser/event_router.h" | 17 #include "extensions/browser/event_router.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class ListValue; | 20 class ListValue; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // BrowserContextKeyedService implementation. | 86 // BrowserContextKeyedService implementation. |
| 87 void Shutdown() override; | 87 void Shutdown() override; |
| 88 | 88 |
| 89 // BrowserContextKeyedAPI implementation. | 89 // BrowserContextKeyedAPI implementation. |
| 90 static const char* service_name() { return "WebstoreAPI"; } | 90 static const char* service_name() { return "WebstoreAPI"; } |
| 91 static const bool kServiceIsNULLWhileTesting = true; | 91 static const bool kServiceIsNULLWhileTesting = true; |
| 92 | 92 |
| 93 ObservedInstallInfoList download_progress_listeners_; | 93 ObservedInstallInfoList download_progress_listeners_; |
| 94 ObservedInstallInfoList install_stage_listeners_; | 94 ObservedInstallInfoList install_stage_listeners_; |
| 95 content::BrowserContext* browser_context_; | 95 content::BrowserContext* browser_context_; |
| 96 scoped_ptr<ScopedObserver<InstallTracker, InstallObserver> > | 96 std::unique_ptr<ScopedObserver<InstallTracker, InstallObserver>> |
| 97 install_observer_; | 97 install_observer_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(WebstoreAPI); | 99 DISALLOW_COPY_AND_ASSIGN(WebstoreAPI); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace extensions | 102 } // namespace extensions |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ | 104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
| OLD | NEW |