/external/chromium/base/memory/ |
H A D | scoped_handle.h | 16 : handle_(NULL) { } 19 : handle_(handle) { } 26 if (handle_) { 27 fclose(handle_); 28 handle_ = NULL; 32 FILE* get() const { return handle_; } 35 FILE* temp = handle_; 36 handle_ = NULL; 42 handle_ = newhandle; 46 FILE* handle_; member in class:ScopedStdioHandle [all...] |
H A D | scoped_open_process.h | 18 ScopedOpenProcess() : handle_(kNullProcessHandle) { 30 return OpenProcessHandle(pid, &handle_); 35 if (handle_ == kNullProcessHandle) 38 CloseProcessHandle(handle_); 39 handle_ = kNullProcessHandle; 42 ProcessHandle handle() const { return handle_; } 45 ProcessHandle handle_; member in class:base::ScopedOpenProcess
|
H A D | weak_ptr.cc | 10 WeakReference::Flag::Flag(Flag** handle) : handle_(handle) { 15 handle_ = NULL; 20 return handle_ != NULL; 24 if (handle_) 25 *handle_ = NULL;
|
/external/chromium_org/base/memory/ |
H A D | scoped_handle.h | 15 : handle_(NULL) { } 18 : handle_(handle) { } 25 if (handle_) { 26 fclose(handle_); 27 handle_ = NULL; 31 FILE* get() const { return handle_; } 34 FILE* temp = handle_; 35 handle_ = NULL; 41 handle_ = newhandle; 45 FILE* handle_; member in class:ScopedStdioHandle [all...] |
H A D | scoped_open_process.h | 16 ScopedOpenProcess() : handle_(kNullProcessHandle) { 28 return OpenProcessHandle(pid, &handle_); 33 if (handle_ == kNullProcessHandle) 36 CloseProcessHandle(handle_); 37 handle_ = kNullProcessHandle; 40 ProcessHandle handle() const { return handle_; } 43 ProcessHandle handle_; member in class:base::ScopedOpenProcess
|
/external/chromium_org/ppapi/cpp/private/ |
H A D | pass_file_handle.cc | 16 : handle_(PP_kInvalidFileHandle) { 20 : handle_(handle) { 24 : handle_(handle.Release()) { 32 PP_FileHandle released = handle_; 33 handle_ = PP_kInvalidFileHandle; 38 if (handle_ != PP_kInvalidFileHandle) { 40 CloseHandle(handle_); 42 close(handle_); 44 handle_ = PP_kInvalidFileHandle;
|
/external/chromium/base/win/ |
H A D | scoped_handle.h | 35 ScopedHandle() : handle_(NULL) { 38 explicit ScopedHandle(HANDLE h) : handle_(NULL) { 49 return handle_ != NULL; 57 handle_ = new_handle; 61 return handle_; 64 operator HANDLE() { return handle_; } 68 HANDLE h = handle_; 69 handle_ = NULL; 74 if (handle_) { 75 if (!::CloseHandle(handle_)) { 83 HANDLE handle_; member in class:base::win::ScopedHandle [all...] |
/external/chromium_org/chrome/installer/test/ |
H A D | resource_updater.cc | 15 ResourceUpdater::ResourceUpdater() : handle_(NULL) { 19 if (handle_ != NULL) { 21 BOOL result = EndUpdateResource(handle_, TRUE); 27 DCHECK(handle_ == NULL); 28 handle_ = BeginUpdateResource(pe_image_path.value().c_str(), FALSE); 29 if (handle_ == NULL) { 41 DCHECK(handle_ != NULL); 45 if (UpdateResource(handle_, type.c_str(), name.c_str(), language_id, 58 DCHECK(handle_ != NULL); 60 if (EndUpdateResource(handle_, FALS [all...] |
/external/chromium/crypto/ |
H A D | scoped_capi_types.h | 51 explicit ScopedCAPIHandle(CAPIHandle handle = NULL) : handle_(handle) {} 54 free_(handle_); 58 if (handle_ != handle) { 59 free_(handle_); 60 handle_ = handle; 64 operator CAPIHandle() const { return handle_; } 65 CAPIHandle get() const { return handle_; } 68 CHECK(handle_ == NULL); 69 return &handle_; 73 return handle_ 93 CAPIHandle handle_; member in class:crypto::ScopedCAPIHandle [all...] |
/external/chromium/base/synchronization/ |
H A D | waitable_event_win.cc | 16 : handle_(CreateEvent(NULL, manual_reset, signaled, NULL)) { 19 CHECK(handle_); 23 : handle_(handle) { 28 CloseHandle(handle_); 32 HANDLE rv = handle_; 33 handle_ = INVALID_HANDLE_VALUE; 38 ResetEvent(handle_); 42 SetEvent(handle_); 50 DWORD result = WaitForSingleObject(handle_, INFINITE); 63 DWORD result = WaitForSingleObject(handle_, static_cas [all...] |
/external/chromium_org/crypto/ |
H A D | scoped_capi_types.h | 50 explicit ScopedCAPIHandle(CAPIHandle handle = NULL) : handle_(handle) {} 57 if (handle_ != handle) { 59 free_proc(handle_); 60 handle_ = handle; 64 operator CAPIHandle() const { return handle_; } 65 CAPIHandle get() const { return handle_; } 68 CHECK(handle_ == NULL); 69 return &handle_; 73 return handle_ == handle; 77 return handle_ ! 93 CAPIHandle handle_; member in class:crypto::ScopedCAPIHandle [all...] |
/external/chromium_org/media/base/ |
H A D | bitstream_buffer.h | 19 handle_(handle), 24 base::SharedMemoryHandle handle() const { return handle_; } 29 base::SharedMemoryHandle handle_; member in class:media::BitstreamBuffer
|
/external/chromium_org/base/ |
H A D | sync_socket_posix.cc | 34 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} 43 DCHECK(socket_a->handle_ == kInvalidHandle); 44 DCHECK(socket_b->handle_ == kInvalidHandle); 66 socket_a->handle_ = handles[0]; 67 socket_b->handle_ = handles[1]; 85 if (handle_ == kInvalidHandle) { 88 int retval = HANDLE_EINTR(close(handle_)); 91 handle_ = kInvalidHandle; 98 int len = file_util::WriteFileDescriptor(handle_, charbuffer, length); 106 if (file_util::ReadFromFD(handle_, charbuffe [all...] |
H A D | sync_socket_nacl.cc | 19 SyncSocket::SyncSocket() : handle_(kInvalidHandle) { 31 if (handle_ != kInvalidHandle) { 32 if (close(handle_) < 0) 34 handle_ = -1; 45 return read(handle_, buffer, length);
|
/external/chromium_org/base/win/ |
H A D | scoped_handle.h | 50 : handle_(Traits::NullHandle()), 52 ~Receiver() { owner_->Set(handle_); } 54 operator Handle*() { return &handle_; } 57 Handle handle_; member in class:base::win::GenericScopedHandle::Receiver 61 GenericScopedHandle() : handle_(Traits::NullHandle()) {} 63 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) { 68 GenericScopedHandle(RValue other) : handle_(Traits::NullHandle()) { 77 return Traits::IsHandleValid(handle_); 89 if (handle_ != handle) { 93 handle_ 143 Handle handle_; member in class:base::win::GenericScopedHandle [all...] |
/external/chromium_org/base/synchronization/ |
H A D | waitable_event_win.cc | 17 : handle_(CreateEvent(NULL, manual_reset, signaled, NULL)) { 20 CHECK(handle_); 24 : handle_(handle) { 29 CloseHandle(handle_); 33 HANDLE rv = handle_; 34 handle_ = INVALID_HANDLE_VALUE; 39 ResetEvent(handle_); 43 SetEvent(handle_); 52 DWORD result = WaitForSingleObject(handle_, INFINITE); 65 DWORD result = WaitForSingleObject(handle_, static_cas [all...] |
/external/chromium_org/chrome/renderer/extensions/ |
H A D | scoped_persistent.h | 31 handle_.Reset(GetIsolate(handle), handle); 37 if (handle_.IsEmpty()) 39 handle_.Dispose(); 40 handle_.Clear(); 51 const_cast<v8::Persistent<T>* >(&handle_)); 55 if (handle_.IsEmpty()) 57 return v8::Local<T>::New(GetIsolate(handle_), handle_); 63 handle_.MakeWeak(parameters, callback); 85 v8::Persistent<T> handle_; member in class:extensions::ScopedPersistent [all...] |
/external/chromium_org/media/audio/pulse/ |
H A D | pulse_input.cc | 33 handle_(NULL), 42 DCHECK(!handle_); 48 if (!pulse::CreateInputStream(pa_mainloop_, pa_context_, &handle_, params_, 53 DCHECK(handle_); 63 DCHECK(handle_); 74 pa_stream_drop(handle_); 79 pa_stream_set_read_callback(handle_, &ReadCallback, this); 80 pa_stream_readable_size(handle_); 83 pa_operation* operation = pa_stream_cork(handle_, 0, NULL, NULL); 98 pa_operation* operation = pa_stream_flush(handle_, [all...] |
/external/chromium/net/http/ |
H A D | http_proxy_client_socket_pool_unittest.cc | 213 ClientSocketHandle handle_; member in class:net::HttpProxyClientSocketPoolTest 227 int rv = handle_.Init("a", GetNoTunnelParams(), LOW, NULL, &pool_, 230 EXPECT_TRUE(handle_.is_initialized()); 231 ASSERT_TRUE(handle_.socket()); 233 static_cast<HttpProxyClientSocket*>(handle_.socket()); 269 int rv = handle_.Init("a", GetTunnelParams(), LOW, &callback_, &pool_, 272 EXPECT_FALSE(handle_.is_initialized()); 273 EXPECT_FALSE(handle_.socket()); 279 EXPECT_TRUE(handle_.is_initialized()); 280 ASSERT_TRUE(handle_ [all...] |
/external/chromium/base/ |
H A D | sync_socket.h | 32 explicit SyncSocket(Handle handle) : handle_(handle) { } 65 Handle handle() const { return handle_; } 68 Handle handle_; member in class:base::SyncSocket
|
H A D | sync_socket_posix.cc | 59 tmp_sockets[0]->handle_ = handles[0]; 61 tmp_sockets[1]->handle_ = handles[1]; 80 if (handle_ == kInvalidHandle) { 83 int retval = HANDLE_EINTR(close(handle_)); 86 handle_ = kInvalidHandle; 93 int len = file_util::WriteFileDescriptor(handle_, charbuffer, length); 100 if (file_util::ReadFromFD(handle_, charbuffer, length)) { 109 if (-1 == ioctl(handle_, FIONREAD, &number_chars)) {
|
/external/chromium/chrome/browser/webdata/ |
H A D | web_data_service_test_util.h | 17 AutofillWebDataServiceConsumer() : handle_(0) {} 23 handle_ = handle; 31 WebDataService::Handle handle() { return handle_; } 35 WebDataService::Handle handle_; member in class:AutofillWebDataServiceConsumer
|
/external/chromium_org/base/threading/ |
H A D | platform_thread.h | 41 : handle_(0), 46 : handle_(handle), 52 : handle_(handle), 57 return handle_ == other.handle_; 61 return !handle_; 65 return handle_; 71 Handle handle_; member in class:base::PlatformThreadHandle
|
/external/chromium_org/chrome/test/automation/ |
H A D | window_proxy.cc | 32 handle_, view_id, screen_coordinates, &result, bounds))) { 43 sender_->Send(new AutomationMsg_SetWindowBounds(handle_, bounds, &result));
|
/external/chromium_org/net/http/ |
H A D | http_proxy_client_socket_pool_unittest.cc | 225 ClientSocketHandle handle_; member in class:net::HttpProxyClientSocketPoolTest 258 int rv = handle_.Init("a", GetNoTunnelParams(), LOW, CompletionCallback(), 261 EXPECT_TRUE(handle_.is_initialized()); 262 ASSERT_TRUE(handle_.socket()); 264 static_cast<HttpProxyClientSocket*>(handle_.socket()); 315 int rv = handle_.Init("a", GetTunnelParams(), LOW, callback_.callback(), 318 EXPECT_FALSE(handle_.is_initialized()); 319 EXPECT_FALSE(handle_.socket()); 324 EXPECT_TRUE(handle_.is_initialized()); 325 ASSERT_TRUE(handle_ [all...] |