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

Side by Side Diff: content/renderer/pepper/mock_renderer_ppapi_host.cc

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. Created 3 years, 7 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
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 #include "content/renderer/pepper/mock_renderer_ppapi_host.h" 5 #include "content/renderer/pepper/mock_renderer_ppapi_host.h"
6 6
7 #include "content/public/renderer/render_view.h" 7 #include "content/public/renderer/render_view.h"
8 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" 8 #include "content/renderer/pepper/fake_pepper_plugin_instance.h"
9 #include "ui/gfx/geometry/point.h" 9 #include "ui/gfx/geometry/point.h"
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 base::PlatformFile handle, 80 base::PlatformFile handle,
81 bool should_close_source) { 81 bool should_close_source) {
82 NOTIMPLEMENTED(); 82 NOTIMPLEMENTED();
83 return IPC::InvalidPlatformFileForTransit(); 83 return IPC::InvalidPlatformFileForTransit();
84 } 84 }
85 85
86 base::SharedMemoryHandle 86 base::SharedMemoryHandle
87 MockRendererPpapiHost::ShareSharedMemoryHandleWithRemote( 87 MockRendererPpapiHost::ShareSharedMemoryHandleWithRemote(
88 const base::SharedMemoryHandle& handle) { 88 const base::SharedMemoryHandle& handle) {
89 NOTIMPLEMENTED(); 89 NOTIMPLEMENTED();
90 return base::SharedMemory::NULLHandle(); 90 return base::SharedMemoryHandle();
91 } 91 }
92 92
93 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; } 93 bool MockRendererPpapiHost::IsRunningInProcess() const { return false; }
94 94
95 std::string MockRendererPpapiHost::GetPluginName() const { 95 std::string MockRendererPpapiHost::GetPluginName() const {
96 return std::string(); 96 return std::string();
97 } 97 }
98 98
99 void MockRendererPpapiHost::SetToExternalPluginHost() { 99 void MockRendererPpapiHost::SetToExternalPluginHost() {
100 NOTIMPLEMENTED(); 100 NOTIMPLEMENTED();
101 } 101 }
102 102
103 void MockRendererPpapiHost::CreateBrowserResourceHosts( 103 void MockRendererPpapiHost::CreateBrowserResourceHosts(
104 PP_Instance instance, 104 PP_Instance instance,
105 const std::vector<IPC::Message>& nested_msgs, 105 const std::vector<IPC::Message>& nested_msgs,
106 const base::Callback<void(const std::vector<int>&)>& callback) const { 106 const base::Callback<void(const std::vector<int>&)>& callback) const {
107 callback.Run(std::vector<int>(nested_msgs.size(), 0)); 107 callback.Run(std::vector<int>(nested_msgs.size(), 0));
108 return; 108 return;
109 } 109 }
110 110
111 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { 111 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const {
112 NOTIMPLEMENTED(); 112 NOTIMPLEMENTED();
113 return GURL(); 113 return GURL();
114 } 114 }
115 115
116 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/audio_message_filter_unittest.cc ('k') | content/renderer/pepper/pepper_audio_input_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698