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/updater/extension_updater.h" | 5 #include "chrome/browser/extensions/updater/extension_updater.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 ExtensionUpdater::FetchedCRXFile::FetchedCRXFile( | 99 ExtensionUpdater::FetchedCRXFile::FetchedCRXFile( |
100 const std::string& i, | 100 const std::string& i, |
101 const base::FilePath& p, | 101 const base::FilePath& p, |
102 const GURL& u, | 102 const GURL& u, |
103 const std::set<int>& request_ids) | 103 const std::set<int>& request_ids) |
104 : extension_id(i), | 104 : extension_id(i), |
105 path(p), | 105 path(p), |
106 download_url(u), | 106 download_url(u), |
107 request_ids(request_ids) {} | 107 request_ids(request_ids) {} |
108 | 108 |
109 ExtensionUpdater::FetchedCRXFile::FetchedCRXFile() | 109 ExtensionUpdater::FetchedCRXFile::FetchedCRXFile() : path(), download_url() {} |
110 : extension_id(""), | |
111 path(), | |
112 download_url() {} | |
113 | 110 |
114 ExtensionUpdater::FetchedCRXFile::~FetchedCRXFile() {} | 111 ExtensionUpdater::FetchedCRXFile::~FetchedCRXFile() {} |
115 | 112 |
116 ExtensionUpdater::InProgressCheck::InProgressCheck() | 113 ExtensionUpdater::InProgressCheck::InProgressCheck() |
117 : install_immediately(false) {} | 114 : install_immediately(false) {} |
118 | 115 |
119 ExtensionUpdater::InProgressCheck::~InProgressCheck() {} | 116 ExtensionUpdater::InProgressCheck::~InProgressCheck() {} |
120 | 117 |
121 struct ExtensionUpdater::ThrottleInfo { | 118 struct ExtensionUpdater::ThrottleInfo { |
122 ThrottleInfo() | 119 ThrottleInfo() |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 const InProgressCheck& request = requests_in_progress_[request_id]; | 687 const InProgressCheck& request = requests_in_progress_[request_id]; |
691 if (request.in_progress_ids_.empty()) { | 688 if (request.in_progress_ids_.empty()) { |
692 VLOG(2) << "Finished update check " << request_id; | 689 VLOG(2) << "Finished update check " << request_id; |
693 if (!request.callback.is_null()) | 690 if (!request.callback.is_null()) |
694 request.callback.Run(); | 691 request.callback.Run(); |
695 requests_in_progress_.erase(request_id); | 692 requests_in_progress_.erase(request_id); |
696 } | 693 } |
697 } | 694 } |
698 | 695 |
699 } // namespace extensions | 696 } // namespace extensions |
OLD | NEW |