OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/extensions/pending_extension_info.h" | 5 #include "chrome/browser/extensions/pending_extension_info.h" |
6 | 6 |
| 7 namespace extensions { |
| 8 |
7 PendingExtensionInfo::PendingExtensionInfo( | 9 PendingExtensionInfo::PendingExtensionInfo( |
8 const std::string& id, | 10 const std::string& id, |
9 const GURL& update_url, | 11 const GURL& update_url, |
10 const Version& version, | 12 const Version& version, |
11 ShouldAllowInstallPredicate should_allow_install, | 13 ShouldAllowInstallPredicate should_allow_install, |
12 bool is_from_sync, | 14 bool is_from_sync, |
13 bool install_silently, | 15 bool install_silently, |
14 extensions::Extension::Location install_source) | 16 Extension::Location install_source) |
15 : id_(id), | 17 : id_(id), |
16 update_url_(update_url), | 18 update_url_(update_url), |
17 version_(version), | 19 version_(version), |
18 should_allow_install_(should_allow_install), | 20 should_allow_install_(should_allow_install), |
19 is_from_sync_(is_from_sync), | 21 is_from_sync_(is_from_sync), |
20 install_silently_(install_silently), | 22 install_silently_(install_silently), |
21 install_source_(install_source) {} | 23 install_source_(install_source) {} |
22 | 24 |
23 PendingExtensionInfo::PendingExtensionInfo() | 25 PendingExtensionInfo::PendingExtensionInfo() |
24 : id_(""), | 26 : id_(""), |
25 update_url_(), | 27 update_url_(), |
26 should_allow_install_(NULL), | 28 should_allow_install_(NULL), |
27 is_from_sync_(true), | 29 is_from_sync_(true), |
28 install_silently_(false), | 30 install_silently_(false), |
29 install_source_(extensions::Extension::INVALID) {} | 31 install_source_(Extension::INVALID) {} |
30 | 32 |
31 bool PendingExtensionInfo::operator==(const PendingExtensionInfo& rhs) const { | 33 bool PendingExtensionInfo::operator==(const PendingExtensionInfo& rhs) const { |
32 return id_ == rhs.id_; | 34 return id_ == rhs.id_; |
33 } | 35 } |
| 36 |
| 37 } // namespace extensions |
OLD | NEW |