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

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

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/plugin_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 const webkit::ppapi::PluginDelegate::AsyncOpenFileSystemURLCallback& 259 const webkit::ppapi::PluginDelegate::AsyncOpenFileSystemURLCallback&
260 callback, 260 callback,
261 const webkit::ppapi::PluginDelegate::NotifyCloseFileCallback& 261 const webkit::ppapi::PluginDelegate::NotifyCloseFileCallback&
262 close_file_callback) 262 close_file_callback)
263 : callback_(callback), 263 : callback_(callback),
264 close_file_callback_(close_file_callback) { 264 close_file_callback_(close_file_callback) {
265 } 265 }
266 266
267 virtual ~AsyncOpenFileSystemURLCallbackTranslator() {} 267 virtual ~AsyncOpenFileSystemURLCallbackTranslator() {}
268 268
269 virtual void DidSucceed() { 269 virtual void DidSucceed() OVERRIDE {
270 NOTREACHED(); 270 NOTREACHED();
271 } 271 }
272 virtual void DidReadMetadata( 272 virtual void DidReadMetadata(
273 const base::PlatformFileInfo& file_info, 273 const base::PlatformFileInfo& file_info,
274 const FilePath& platform_path) { 274 const FilePath& platform_path) OVERRIDE {
275 NOTREACHED(); 275 NOTREACHED();
276 } 276 }
277 virtual void DidReadDirectory( 277 virtual void DidReadDirectory(
278 const std::vector<base::FileUtilProxy::Entry>& entries, 278 const std::vector<base::FileUtilProxy::Entry>& entries,
279 bool has_more) { 279 bool has_more) OVERRIDE {
280 NOTREACHED(); 280 NOTREACHED();
281 } 281 }
282 virtual void DidOpenFileSystem(const std::string& name, 282 virtual void DidOpenFileSystem(const std::string& name,
283 const GURL& root) { 283 const GURL& root) OVERRIDE {
284 NOTREACHED(); 284 NOTREACHED();
285 } 285 }
286 286
287 virtual void DidFail(base::PlatformFileError error_code) { 287 virtual void DidFail(base::PlatformFileError error_code) OVERRIDE {
288 base::PlatformFile invalid_file = base::kInvalidPlatformFileValue; 288 base::PlatformFile invalid_file = base::kInvalidPlatformFileValue;
289 callback_.Run(error_code, 289 callback_.Run(error_code,
290 base::PassPlatformFile(&invalid_file), 290 base::PassPlatformFile(&invalid_file),
291 webkit::ppapi::PluginDelegate::NotifyCloseFileCallback()); 291 webkit::ppapi::PluginDelegate::NotifyCloseFileCallback());
292 } 292 }
293 293
294 virtual void DidWrite(int64 bytes, bool complete) { 294 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE {
295 NOTREACHED(); 295 NOTREACHED();
296 } 296 }
297 297
298 virtual void DidOpenFile(base::PlatformFile file) { 298 virtual void DidOpenFile(base::PlatformFile file) OVERRIDE {
299 callback_.Run(base::PLATFORM_FILE_OK, 299 callback_.Run(base::PLATFORM_FILE_OK,
300 base::PassPlatformFile(&file), 300 base::PassPlatformFile(&file),
301 close_file_callback_); 301 close_file_callback_);
302 // Make sure we won't leak file handle if the requester has died. 302 // Make sure we won't leak file handle if the requester has died.
303 if (file != base::kInvalidPlatformFileValue) { 303 if (file != base::kInvalidPlatformFileValue) {
304 base::FileUtilProxy::Close( 304 base::FileUtilProxy::Close(
305 RenderThreadImpl::current()->GetFileThreadMessageLoopProxy(), file, 305 RenderThreadImpl::current()->GetFileThreadMessageLoopProxy(), file,
306 close_file_callback_); 306 close_file_callback_);
307 } 307 }
308 } 308 }
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 RenderWidgetFullscreenPepper* container = 1642 RenderWidgetFullscreenPepper* container =
1643 static_cast<RenderWidgetFullscreenPepper*>( 1643 static_cast<RenderWidgetFullscreenPepper*>(
1644 instance->fullscreen_container()); 1644 instance->fullscreen_container());
1645 return container->mouse_lock_dispatcher(); 1645 return container->mouse_lock_dispatcher();
1646 } else { 1646 } else {
1647 return render_view_->mouse_lock_dispatcher(); 1647 return render_view_->mouse_lock_dispatcher();
1648 } 1648 }
1649 } 1649 }
1650 1650
1651 } // namespace content 1651 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/plugin_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698