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

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

Issue 10834173: Retry "Add an interface for PNaCl to check if the session is incognito..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for compiler warnings. Created 8 years, 4 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/include/nacl_string.h" 9 #include "native_client/src/include/nacl_string.h"
10 #include "native_client/src/trusted/desc/nacl_desc_rng.h" 10 #include "native_client/src/trusted/desc/nacl_desc_rng.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 // The nacl::DescWrapper* for the read-only version of the file. 76 // The nacl::DescWrapper* for the read-only version of the file.
77 nacl::DescWrapper* read_wrapper() { return read_wrapper_.get(); } 77 nacl::DescWrapper* read_wrapper() { return read_wrapper_.get(); }
78 nacl::DescWrapper* release_read_wrapper() { 78 nacl::DescWrapper* release_read_wrapper() {
79 return read_wrapper_.release(); 79 return read_wrapper_.release();
80 } 80 }
81 // For quota management. 81 // For quota management.
82 const nacl::string identifier() const { 82 const nacl::string identifier() const {
83 return nacl::string(reinterpret_cast<const char*>(identifier_)); 83 return nacl::string(reinterpret_cast<const char*>(identifier_));
84 } 84 }
85 const pp::FileIO& write_file_io() const { return *write_io_; } 85 pp::FileIO* write_file_io() const { return write_io_.get(); }
86 86
87 private: 87 private:
88 NACL_DISALLOW_COPY_AND_ASSIGN(LocalTempFile); 88 NACL_DISALLOW_COPY_AND_ASSIGN(LocalTempFile);
89 89
90 void Initialize(); 90 void Initialize();
91 91
92 // Gets the POSIX file descriptor for a resource. 92 // Gets the POSIX file descriptor for a resource.
93 int32_t GetFD(int32_t pp_error, 93 int32_t GetFD(int32_t pp_error,
94 const pp::Resource& resource, 94 const pp::Resource& resource,
95 bool is_writable); 95 bool is_writable);
(...skipping 28 matching lines...) Expand all
124 // the identifiers can be reused between runs of the translator, start-ups of 124 // the identifiers can be reused between runs of the translator, start-ups of
125 // the browser, etc. 125 // the browser, etc.
126 uint8_t identifier_[16]; 126 uint8_t identifier_[16];
127 // A counter to dole out unique identifiers. 127 // A counter to dole out unique identifiers.
128 static uint32_t next_identifier; 128 static uint32_t next_identifier;
129 }; 129 };
130 130
131 } // namespace plugin 131 } // namespace plugin
132 132
133 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_ 133 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_LOCAL_TEMP_FILE_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_nacl_private.h ('k') | ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698