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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace gfx { | 42 namespace gfx { |
43 class Point; | 43 class Point; |
44 class Rect; | 44 class Rect; |
45 } | 45 } |
46 | 46 |
47 namespace gpu { | 47 namespace gpu { |
48 class CommandBuffer; | 48 class CommandBuffer; |
49 } | 49 } |
50 | 50 |
| 51 namespace ppapi { |
| 52 struct Preferences; |
| 53 } |
| 54 |
51 namespace skia { | 55 namespace skia { |
52 class PlatformCanvas; | 56 class PlatformCanvas; |
53 } | 57 } |
54 | 58 |
55 namespace WebKit { | 59 namespace WebKit { |
56 class WebFileChooserCompletion; | 60 class WebFileChooserCompletion; |
57 struct WebFileChooserParams; | 61 struct WebFileChooserParams; |
58 } | 62 } |
59 | 63 |
60 namespace webkit_glue { | 64 namespace webkit_glue { |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 395 |
392 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | 396 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; |
393 | 397 |
394 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | 398 // TODO(viettrungluu): Generalize this for use with other plugins if it proves |
395 // necessary. | 399 // necessary. |
396 virtual std::string GetFlashCommandLineArgs() = 0; | 400 virtual std::string GetFlashCommandLineArgs() = 0; |
397 | 401 |
398 // Create an anonymous shared memory segment of size |size| bytes, and return | 402 // Create an anonymous shared memory segment of size |size| bytes, and return |
399 // a pointer to it, or NULL on error. Caller owns the returned pointer. | 403 // a pointer to it, or NULL on error. Caller owns the returned pointer. |
400 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 404 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 405 |
| 406 // Returns the current preferences. |
| 407 virtual ::ppapi::Preferences GetPreferences() = 0; |
401 }; | 408 }; |
402 | 409 |
403 } // namespace ppapi | 410 } // namespace ppapi |
404 } // namespace webkit | 411 } // namespace webkit |
405 | 412 |
406 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 413 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |