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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 // Return true if the extension install will proceed. Install will not | 34 // Return true if the extension install will proceed. Install will not |
35 // proceed if the extension is already installed from a higher priority | 35 // proceed if the extension is already installed from a higher priority |
36 // location. | 36 // location. |
37 virtual bool OnExternalExtensionFileFound( | 37 virtual bool OnExternalExtensionFileFound( |
38 const std::string& id, | 38 const std::string& id, |
39 const base::Version* version, | 39 const base::Version* version, |
40 const base::FilePath& path, | 40 const base::FilePath& path, |
41 Manifest::Location location, | 41 Manifest::Location location, |
42 int creation_flags, | 42 int creation_flags, |
43 bool mark_acknowledged) = 0; | 43 bool mark_acknowledged, |
| 44 bool install_immediately) = 0; |
44 | 45 |
45 // Return true if the extension install will proceed. Install might not | 46 // Return true if the extension install will proceed. Install might not |
46 // proceed if the extension is already installed from a higher priority | 47 // proceed if the extension is already installed from a higher priority |
47 // location. | 48 // location. |
48 virtual bool OnExternalExtensionUpdateUrlFound( | 49 virtual bool OnExternalExtensionUpdateUrlFound( |
49 const std::string& id, | 50 const std::string& id, |
50 const std::string& install_parameter, | 51 const std::string& install_parameter, |
51 const GURL& update_url, | 52 const GURL& update_url, |
52 Manifest::Location location, | 53 Manifest::Location location, |
53 int creation_flags, | 54 int creation_flags, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // from its source. | 92 // from its source. |
92 virtual bool IsReady() const = 0; | 93 virtual bool IsReady() const = 0; |
93 }; | 94 }; |
94 | 95 |
95 typedef std::vector<linked_ptr<ExternalProviderInterface> > | 96 typedef std::vector<linked_ptr<ExternalProviderInterface> > |
96 ProviderCollection; | 97 ProviderCollection; |
97 | 98 |
98 } // namespace extensions | 99 } // namespace extensions |
99 | 100 |
100 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 101 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
OLD | NEW |