| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 #include "ppapi/c/pp_errors.h" | 22 #include "ppapi/c/pp_errors.h" |
| 23 #include "ppapi/c/pp_instance.h" | 23 #include "ppapi/c/pp_instance.h" |
| 24 #include "ppapi/c/pp_stdint.h" | 24 #include "ppapi/c/pp_stdint.h" |
| 25 #include "ui/gfx/size.h" | 25 #include "ui/gfx/size.h" |
| 26 #include "webkit/fileapi/file_system_types.h" | 26 #include "webkit/fileapi/file_system_types.h" |
| 27 #include "webkit/plugins/ppapi/dir_contents.h" | 27 #include "webkit/plugins/ppapi/dir_contents.h" |
| 28 #include "webkit/quota/quota_types.h" | 28 #include "webkit/quota/quota_types.h" |
| 29 | 29 |
| 30 class AudioMessageFilter; | 30 class AudioMessageFilter; |
| 31 class GURL; | 31 class GURL; |
| 32 class P2PSocketDispatcher; | |
| 33 class SkBitmap; | 32 class SkBitmap; |
| 34 | 33 |
| 35 namespace base { | 34 namespace base { |
| 36 class MessageLoopProxy; | 35 class MessageLoopProxy; |
| 37 class Time; | 36 class Time; |
| 38 } | 37 } |
| 39 | 38 |
| 39 namespace content { |
| 40 class P2PSocketDispatcher; |
| 41 } |
| 42 |
| 40 namespace fileapi { | 43 namespace fileapi { |
| 41 class FileSystemCallbackDispatcher; | 44 class FileSystemCallbackDispatcher; |
| 42 } | 45 } |
| 43 | 46 |
| 44 namespace gfx { | 47 namespace gfx { |
| 45 class Point; | 48 class Point; |
| 46 class Rect; | 49 class Rect; |
| 47 } | 50 } |
| 48 | 51 |
| 49 namespace gpu { | 52 namespace gpu { |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 virtual void HasUnsupportedFeature() = 0; | 425 virtual void HasUnsupportedFeature() = 0; |
| 423 | 426 |
| 424 // Tells the browser to bring up SaveAs dialog to save specified URL. | 427 // Tells the browser to bring up SaveAs dialog to save specified URL. |
| 425 virtual void SaveURLAs(const GURL& url) = 0; | 428 virtual void SaveURLAs(const GURL& url) = 0; |
| 426 | 429 |
| 427 // Socket dispatcher for P2P connections. Returns to NULL if P2P API | 430 // Socket dispatcher for P2P connections. Returns to NULL if P2P API |
| 428 // is disabled. | 431 // is disabled. |
| 429 // | 432 // |
| 430 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting | 433 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting |
| 431 // client and remove it from here. | 434 // client and remove it from here. |
| 432 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 435 virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
| 433 | 436 |
| 434 // Creates P2PTransport object. | 437 // Creates P2PTransport object. |
| 435 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 438 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
| 436 | 439 |
| 437 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | 440 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; |
| 438 | 441 |
| 439 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | 442 // TODO(viettrungluu): Generalize this for use with other plugins if it proves |
| 440 // necessary. | 443 // necessary. |
| 441 virtual std::string GetFlashCommandLineArgs() = 0; | 444 virtual std::string GetFlashCommandLineArgs() = 0; |
| 442 | 445 |
| 443 // Create an anonymous shared memory segment of size |size| bytes, and return | 446 // 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. | 447 // a pointer to it, or NULL on error. Caller owns the returned pointer. |
| 445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 448 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 446 | 449 |
| 447 // Returns the current preferences. | 450 // Returns the current preferences. |
| 448 virtual ::ppapi::Preferences GetPreferences() = 0; | 451 virtual ::ppapi::Preferences GetPreferences() = 0; |
| 449 }; | 452 }; |
| 450 | 453 |
| 451 } // namespace ppapi | 454 } // namespace ppapi |
| 452 } // namespace webkit | 455 } // namespace webkit |
| 453 | 456 |
| 454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 457 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |