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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 virtual void SetContentRestriction(int restrictions) = 0; | 422 virtual void SetContentRestriction(int restrictions) = 0; |
420 | 423 |
421 // 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. |
422 virtual void SaveURLAs(const GURL& url) = 0; | 425 virtual void SaveURLAs(const GURL& url) = 0; |
423 | 426 |
424 // Socket dispatcher for P2P connections. Returns to NULL if P2P API | 427 // Socket dispatcher for P2P connections. Returns to NULL if P2P API |
425 // is disabled. | 428 // is disabled. |
426 // | 429 // |
427 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting | 430 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting |
428 // client and remove it from here. | 431 // client and remove it from here. |
429 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 432 virtual content::P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
430 | 433 |
431 // Creates P2PTransport object. | 434 // Creates P2PTransport object. |
432 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 435 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
433 | 436 |
434 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | 437 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; |
435 | 438 |
436 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | 439 // TODO(viettrungluu): Generalize this for use with other plugins if it proves |
437 // necessary. | 440 // necessary. |
438 virtual std::string GetFlashCommandLineArgs() = 0; | 441 virtual std::string GetFlashCommandLineArgs() = 0; |
439 | 442 |
440 // Create an anonymous shared memory segment of size |size| bytes, and return | 443 // Create an anonymous shared memory segment of size |size| bytes, and return |
441 // a pointer to it, or NULL on error. Caller owns the returned pointer. | 444 // a pointer to it, or NULL on error. Caller owns the returned pointer. |
442 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
443 | 446 |
444 // Returns the current preferences. | 447 // Returns the current preferences. |
445 virtual ::ppapi::Preferences GetPreferences() = 0; | 448 virtual ::ppapi::Preferences GetPreferences() = 0; |
446 }; | 449 }; |
447 | 450 |
448 } // namespace ppapi | 451 } // namespace ppapi |
449 } // namespace webkit | 452 } // namespace webkit |
450 | 453 |
451 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |