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

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

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove friend 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
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 #ifndef COMPONENTS_NACL_COMMON_PNACL_TYPES_H_ 5 #ifndef COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
6 #define COMPONENTS_NACL_COMMON_PNACL_TYPES_H_ 6 #define COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
7 7
8 // This file exists (instead of putting this type into nacl_types.h) because 8 // This file exists (instead of putting this type into nacl_types.h) because
9 // nacl_types is built into nacl_helper in addition to chrome, and we don't 9 // nacl_types is built into nacl_helper in addition to chrome, and we don't
10 // want to pull src/url/ into there, since it would be unnecessary bloat. 10 // want to pull src/url/ into there, since it would be unnecessary bloat.
(...skipping 12 matching lines...) Expand all
23 PnaclCacheInfo(); 23 PnaclCacheInfo();
24 ~PnaclCacheInfo(); 24 ~PnaclCacheInfo();
25 GURL pexe_url; 25 GURL pexe_url;
26 int abi_version; 26 int abi_version;
27 int opt_level; 27 int opt_level;
28 base::Time last_modified; 28 base::Time last_modified;
29 std::string etag; 29 std::string etag;
30 bool has_no_store_header; 30 bool has_no_store_header;
31 }; 31 };
32 32
33 // Progress information for PNaCl on-demand installs.
34 struct PnaclInstallProgress {
35 int64 current;
36 int64 total_size;
37
38 // Returns an instance of PnaclInstallProgress where the
39 // total is marked as unknown.
40 static PnaclInstallProgress Unknown();
41
42 // Returns true if the given instance of PnaclInstallProgress has
43 // an unknown total.
44 static bool progress_known(const PnaclInstallProgress& p);
45 };
46
47 } // namespace nacl 33 } // namespace nacl
48 34
49 #endif // COMPONENTS_NACL_COMMON_PNACL_TYPES_H_ 35 #endif // COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698