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

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

Issue 147083014: Introduce NaClFileInfoAutoCloser as an RAII wrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bbudge CR fb Created 6 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // it and replay it to nexe after it's loaded. We need to replay when this 448 // it and replay it to nexe after it's loaded. We need to replay when this
449 // URLLoader resource is non-is_null(). 449 // URLLoader resource is non-is_null().
450 pp::URLLoader document_load_to_replay_; 450 pp::URLLoader document_load_to_replay_;
451 451
452 nacl::string mime_type_; 452 nacl::string mime_type_;
453 453
454 // Keep track of the FileDownloaders created to fetch urls. 454 // Keep track of the FileDownloaders created to fetch urls.
455 std::set<FileDownloader*> url_downloaders_; 455 std::set<FileDownloader*> url_downloaders_;
456 // Keep track of file descriptors opened by StreamAsFile(). 456 // Keep track of file descriptors opened by StreamAsFile().
457 // These are owned by the browser. 457 // These are owned by the browser.
458 std::map<nacl::string, struct NaClFileInfo> url_file_info_map_; 458 std::map<nacl::string, NaClFileInfoAutoCloser*> url_file_info_map_;
459 459
460 // Pending progress events. 460 // Pending progress events.
461 std::queue<ProgressEvent*> progress_events_; 461 std::queue<ProgressEvent*> progress_events_;
462 462
463 // Used for NexeFileDidOpenContinuation 463 // Used for NexeFileDidOpenContinuation
464 int64_t load_start_; 464 int64_t load_start_;
465 465
466 int64_t init_time_; 466 int64_t init_time_;
467 int64_t ready_time_; 467 int64_t ready_time_;
468 size_t nexe_size_; 468 size_t nexe_size_;
(...skipping 15 matching lines...) Expand all
484 int64_t time_of_last_progress_event_; 484 int64_t time_of_last_progress_event_;
485 int exit_status_; 485 int exit_status_;
486 486
487 const PPB_NaCl_Private* nacl_interface_; 487 const PPB_NaCl_Private* nacl_interface_;
488 pp::UMAPrivate uma_interface_; 488 pp::UMAPrivate uma_interface_;
489 }; 489 };
490 490
491 } // namespace plugin 491 } // namespace plugin
492 492
493 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 493 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/file_downloader.cc ('k') | ppapi/native_client/src/trusted/plugin/plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698