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

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

Issue 10830063: refactor EnumerateDevices to make it a persistent request. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unit test 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, 370 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance,
371 const WebKit::WebCursorInfo& cursor) OVERRIDE; 371 const WebKit::WebCursorInfo& cursor) OVERRIDE;
372 virtual void DidReceiveMouseEvent( 372 virtual void DidReceiveMouseEvent(
373 webkit::ppapi::PluginInstance* instance) OVERRIDE; 373 webkit::ppapi::PluginInstance* instance) OVERRIDE;
374 virtual bool IsInFullscreenMode() OVERRIDE; 374 virtual bool IsInFullscreenMode() OVERRIDE;
375 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; 375 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
376 virtual bool IsPageVisible() const OVERRIDE; 376 virtual bool IsPageVisible() const OVERRIDE;
377 virtual int EnumerateDevices( 377 virtual int EnumerateDevices(
378 PP_DeviceType_Dev type, 378 PP_DeviceType_Dev type,
379 const EnumerateDevicesCallback& callback) OVERRIDE; 379 const EnumerateDevicesCallback& callback) OVERRIDE;
380 virtual void StopEnumerateDevices(int request_id) OVERRIDE;
380 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const OVERRIDE; 381 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const OVERRIDE;
381 virtual std::string GetDeviceID() OVERRIDE; 382 virtual std::string GetDeviceID() OVERRIDE;
382 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( 383 virtual PP_FlashLSORestrictions GetLocalDataRestrictions(
383 const GURL& document_url, 384 const GURL& document_url,
384 const GURL& plugin_url) OVERRIDE; 385 const GURL& plugin_url) OVERRIDE;
385 386
386 // RenderViewObserver implementation. 387 // RenderViewObserver implementation.
387 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 388 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
388 virtual void OnDestruct() OVERRIDE; 389 virtual void OnDestruct() OVERRIDE;
389 390
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 513
513 scoped_ptr<PepperDeviceEnumerationEventHandler> 514 scoped_ptr<PepperDeviceEnumerationEventHandler>
514 device_enumeration_event_handler_; 515 device_enumeration_event_handler_;
515 516
516 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 517 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
517 }; 518 };
518 519
519 } // namespace content 520 } // namespace content
520 521
521 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 522 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698