pnacl_types.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
  5. #define COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
  6. // This file exists (instead of putting this type into nacl_types.h) because
  7. // nacl_types is built into nacl_helper in addition to chrome, and we don't
  8. // want to pull src/url/ into there, since it would be unnecessary bloat.
  9. #include "base/time/time.h"
  10. #include "url/gurl.h"
  11. namespace nacl {
  12. // Cache-related information about pexe files, sent from the plugin/renderer
  13. // to the browser.
  14. //
  15. // If you change this, you will also need to update the IPC serialization in
  16. // nacl_host_messages.h.
  17. struct PnaclCacheInfo {
  18. PnaclCacheInfo();
  19. PnaclCacheInfo(const PnaclCacheInfo& other);
  20. ~PnaclCacheInfo();
  21. GURL pexe_url;
  22. int abi_version;
  23. int opt_level;
  24. base::Time last_modified;
  25. std::string etag;
  26. bool has_no_store_header;
  27. bool use_subzero;
  28. std::string sandbox_isa;
  29. std::string extra_flags;
  30. };
  31. } // namespace nacl
  32. #endif // COMPONENTS_NACL_COMMON_PNACL_TYPES_H_