Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: components/nacl/common/pnacl_types.cc

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder functions Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/nacl/common/pnacl_types.h ('k') | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 : abi_version(0), opt_level(0), has_no_store_header(0) {}
11 PnaclCacheInfo::~PnaclCacheInfo() {} 11 PnaclCacheInfo::~PnaclCacheInfo() {}
12 12
13 // static
14 bool PnaclInstallProgress::progress_known(const PnaclInstallProgress& p) {
15 return p.total_size >= 0;
16 }
17
18 // static
19 PnaclInstallProgress PnaclInstallProgress::Unknown() {
20 PnaclInstallProgress p;
21 p.current = 0;
22 // Use -1 to indicate that total is not determined.
23 // This matches the -1 of the OnURLFetchDownloadProgress interface in
24 // net/url_request/url_fetcher_delegate.h
25 p.total_size = -1;
26 return p;
27 }
28
29 } // namespace nacl 13 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/common/pnacl_types.h ('k') | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698