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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 7982032: Remove GetP2PSocketDispatcher from PepperPluginDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_old.h" 10 #include "base/callback_old.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 // Tell the browser when resource loading starts/ends. 417 // Tell the browser when resource loading starts/ends.
418 virtual void DidStartLoading() = 0; 418 virtual void DidStartLoading() = 0;
419 virtual void DidStopLoading() = 0; 419 virtual void DidStopLoading() = 0;
420 420
421 // Sets restrictions on how the content can be used (i.e. no print/copy). 421 // Sets restrictions on how the content can be used (i.e. no print/copy).
422 virtual void SetContentRestriction(int restrictions) = 0; 422 virtual void SetContentRestriction(int restrictions) = 0;
423 423
424 // Tells the browser to bring up SaveAs dialog to save specified URL. 424 // Tells the browser to bring up SaveAs dialog to save specified URL.
425 virtual void SaveURLAs(const GURL& url) = 0; 425 virtual void SaveURLAs(const GURL& url) = 0;
426 426
427 // Socket dispatcher for P2P connections. Returns to NULL if P2P API
428 // is disabled.
429 //
430 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting
431 // client and remove it from here.
432 virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher() = 0;
433
434 // Creates P2PTransport object. 427 // Creates P2PTransport object.
435 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; 428 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0;
436 429
437 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; 430 virtual double GetLocalTimeZoneOffset(base::Time t) = 0;
438 431
439 // TODO(viettrungluu): Generalize this for use with other plugins if it proves 432 // TODO(viettrungluu): Generalize this for use with other plugins if it proves
440 // necessary. 433 // necessary.
441 virtual std::string GetFlashCommandLineArgs() = 0; 434 virtual std::string GetFlashCommandLineArgs() = 0;
442 435
443 // Create an anonymous shared memory segment of size |size| bytes, and return 436 // Create an anonymous shared memory segment of size |size| bytes, and return
444 // a pointer to it, or NULL on error. Caller owns the returned pointer. 437 // a pointer to it, or NULL on error. Caller owns the returned pointer.
445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 438 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
446 439
447 // Returns the current preferences. 440 // Returns the current preferences.
448 virtual ::ppapi::Preferences GetPreferences() = 0; 441 virtual ::ppapi::Preferences GetPreferences() = 0;
449 }; 442 };
450 443
451 } // namespace ppapi 444 } // namespace ppapi
452 } // namespace webkit 445 } // namespace webkit
453 446
454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 447 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698