|
Get rid of base::SharedMemory::NULLHandle();
This CL is a refactor and has no intended behavior change.
NullHandle() has two use cases:
* Create an invalid handle.
* Return an object that can be compared against a handle to check validity.
The former is also the behavior of the default constructor of
base::SharedMemoryHandle, and the latter should be done with the member
IsValid().
Fixing the latter also allows the removal of operator== and operator!=.
BUG= 713763
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2849633002
Cr-Commit-Position: refs/heads/master@{#468231}
Committed: https://chromium.googlesource.com/chromium/src/+/a40775d038de9a6a75db3965104abe56b77c9ed6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+38 lines, -124 lines) |
Patch |
|
M |
base/memory/shared_memory.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_handle.h
|
View
|
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_handle_mac.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_handle_win.cc
|
View
|
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_mac.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_nacl.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_posix.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_win.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
components/discardable_memory/service/discardable_shared_memory_manager.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
components/nacl/common/nacl_types.cc
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/nexe_load_manager.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/media/capture/web_contents_video_capture_device_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/clipboard_message_filter_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_message_filter_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/pepper/mock_renderer_ppapi_host.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_audio_input_host.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_audio_output_host.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
gpu/ipc/client/gpu_channel_host.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/base/video_frame.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
media/capture/content/thread_safe_capture_oracle.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojo/edk/embedder/embedder.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/nacl_irt/ppapi_dispatcher.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/gamepad_resource.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/media_stream_track_resource_base.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/plugin_array_buffer_var.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_audio_proxy.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_graphics_3d_proxy.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/proxy_channel.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/serialized_handle.h
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/serialized_handle.cc
|
View
|
|
3 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/video_decoder_resource.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/gfx/gpu_memory_buffer.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
ui/surface/transport_dib.h
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 39 (33 generated)
|