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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/plugin.h

Issue 9355051: Plumb through cache_identity from manifest for first sketch of pnacl cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix type-check thing found by windows compiler. Created 8 years, 10 months 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 // -*- c++ -*- 1 // -*- c++ -*-
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // The portable representation of an instance and root scriptable object. 6 // The portable representation of an instance and root scriptable object.
7 // The PPAPI version of the plugin instantiates a subclass of this class. 7 // The PPAPI version of the plugin instantiates a subclass of this class.
8 8
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 void ProcessNaClManifest(const nacl::string& manifest_json); 393 void ProcessNaClManifest(const nacl::string& manifest_json);
394 394
395 // Parses the JSON in |manifest_json| and retains a Manifest in 395 // Parses the JSON in |manifest_json| and retains a Manifest in
396 // |manifest_| for use by subsequent resource lookups. 396 // |manifest_| for use by subsequent resource lookups.
397 // On success, |true| is returned and |manifest_| is updated to 397 // On success, |true| is returned and |manifest_| is updated to
398 // contain a Manifest that is used by SelectNexeURLFromManifest. 398 // contain a Manifest that is used by SelectNexeURLFromManifest.
399 // On failure, |false| is returned, and |manifest_| is unchanged. 399 // On failure, |false| is returned, and |manifest_| is unchanged.
400 bool SetManifestObject(const nacl::string& manifest_json, 400 bool SetManifestObject(const nacl::string& manifest_json,
401 ErrorInfo* error_info); 401 ErrorInfo* error_info);
402 402
403 // Determines the URL of the program module appropriate for the NaCl sandbox
404 // implemented by the installed sel_ldr. The URL is determined from the
405 // Manifest in |manifest_|. On success, |true| is returned and |result| is
406 // set to the URL to use for the program, and |is_portable| is set to
407 // |true| if the program is portable bitcode.
408 // On failure, |false| is returned.
409 bool SelectProgramURLFromManifest(nacl::string* result,
410 ErrorInfo* error_info,
411 bool* is_portable);
412
413 // Logs timing information to a UMA histogram, and also logs the same timing 403 // Logs timing information to a UMA histogram, and also logs the same timing
414 // information divided by the size of the nexe to another histogram. 404 // information divided by the size of the nexe to another histogram.
415 void HistogramStartupTimeSmall(const std::string& name, float dt); 405 void HistogramStartupTimeSmall(const std::string& name, float dt);
416 void HistogramStartupTimeMedium(const std::string& name, float dt); 406 void HistogramStartupTimeMedium(const std::string& name, float dt);
417 407
418 // Determines the appropriate nexe for the sandbox and requests a load. 408 // Determines the appropriate nexe for the sandbox and requests a load.
419 void RequestNexeLoad(); 409 void RequestNexeLoad();
420 410
421 // This NEXE is being used as a content type handler rather than directly by 411 // This NEXE is being used as a content type handler rather than directly by
422 // an HTML document. 412 // an HTML document.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // in UpdateDownloadProgress to map a url loader back to the URL being 518 // in UpdateDownloadProgress to map a url loader back to the URL being
529 // downloaded. 519 // downloaded.
530 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; 520 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const;
531 521
532 int64_t time_of_last_progress_event_; 522 int64_t time_of_last_progress_event_;
533 }; 523 };
534 524
535 } // namespace plugin 525 } // namespace plugin
536 526
537 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 527 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/manifest.h ('k') | ppapi/native_client/src/trusted/plugin/plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698