| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 6 #define EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 const base::FilePath& path, | 39 const base::FilePath& path, |
| 40 Manifest::Location location, | 40 Manifest::Location location, |
| 41 int creation_flags, | 41 int creation_flags, |
| 42 bool mark_acknowledged) = 0; | 42 bool mark_acknowledged) = 0; |
| 43 | 43 |
| 44 // Return true if the extension install will proceed. Install might not | 44 // Return true if the extension install will proceed. Install might not |
| 45 // proceed if the extension is already installed from a higher priority | 45 // proceed if the extension is already installed from a higher priority |
| 46 // location. | 46 // location. |
| 47 virtual bool OnExternalExtensionUpdateUrlFound( | 47 virtual bool OnExternalExtensionUpdateUrlFound( |
| 48 const std::string& id, | 48 const std::string& id, |
| 49 const std::string& install_parameter, |
| 49 const GURL& update_url, | 50 const GURL& update_url, |
| 50 Manifest::Location location, | 51 Manifest::Location location, |
| 51 int creation_flags, | 52 int creation_flags, |
| 52 bool mark_acknowledged) = 0; | 53 bool mark_acknowledged) = 0; |
| 53 | 54 |
| 54 // Called after all the external extensions have been reported | 55 // Called after all the external extensions have been reported |
| 55 // through the above two methods. |provider| is a pointer to the | 56 // through the above two methods. |provider| is a pointer to the |
| 56 // provider that is now ready (typically this), and the | 57 // provider that is now ready (typically this), and the |
| 57 // implementation of OnExternalProviderReady() should be able to | 58 // implementation of OnExternalProviderReady() should be able to |
| 58 // safely assert that provider->IsReady(). | 59 // safely assert that provider->IsReady(). |
| (...skipping 30 matching lines...) Expand all Loading... |
| 89 // from its source. | 90 // from its source. |
| 90 virtual bool IsReady() const = 0; | 91 virtual bool IsReady() const = 0; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 typedef std::vector<linked_ptr<ExternalProviderInterface> > | 94 typedef std::vector<linked_ptr<ExternalProviderInterface> > |
| 94 ProviderCollection; | 95 ProviderCollection; |
| 95 | 96 |
| 96 } // namespace extensions | 97 } // namespace extensions |
| 97 | 98 |
| 98 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 99 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| OLD | NEW |