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 #include "components/nacl/common/pnacl_types.h" | 5 #include "components/nacl/common/pnacl_types.h" |
6 | 6 |
7 namespace nacl { | 7 namespace nacl { |
8 | 8 |
9 PnaclCacheInfo::PnaclCacheInfo() {} | 9 PnaclCacheInfo::PnaclCacheInfo() |
| 10 : abi_version(0), opt_level(0), has_no_store_header(0) {} |
10 PnaclCacheInfo::~PnaclCacheInfo() {} | 11 PnaclCacheInfo::~PnaclCacheInfo() {} |
11 | 12 |
12 // static | 13 // static |
13 bool PnaclInstallProgress::progress_known(const PnaclInstallProgress& p) { | 14 bool PnaclInstallProgress::progress_known(const PnaclInstallProgress& p) { |
14 return p.total_size >= 0; | 15 return p.total_size >= 0; |
15 } | 16 } |
16 | 17 |
17 // static | 18 // static |
18 PnaclInstallProgress PnaclInstallProgress::Unknown() { | 19 PnaclInstallProgress PnaclInstallProgress::Unknown() { |
19 PnaclInstallProgress p; | 20 PnaclInstallProgress p; |
20 p.current = 0; | 21 p.current = 0; |
21 // Use -1 to indicate that total is not determined. | 22 // Use -1 to indicate that total is not determined. |
22 // This matches the -1 of the OnURLFetchDownloadProgress interface in | 23 // This matches the -1 of the OnURLFetchDownloadProgress interface in |
23 // net/url_request/url_fetcher_delegate.h | 24 // net/url_request/url_fetcher_delegate.h |
24 p.total_size = -1; | 25 p.total_size = -1; |
25 return p; | 26 return p; |
26 } | 27 } |
27 | 28 |
28 } // namespace nacl | 29 } // namespace nacl |
OLD | NEW |