OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebKitClient_h | 31 #ifndef WebKitClient_h |
32 #define WebKitClient_h | 32 #define WebKitClient_h |
33 | 33 |
34 #include <time.h> | 34 #include <time.h> |
35 | 35 |
36 #include "WebCommon.h" | 36 #include "WebCommon.h" |
37 #include "WebLocalizedString.h" | 37 #include "WebLocalizedString.h" |
38 #include "WebVector.h" | 38 #include "WebVector.h" |
39 #include "webkit/api/src/TemporaryGlue.h" | |
40 | 39 |
41 #ifdef WIN32 | 40 #ifdef WIN32 |
42 typedef void *HANDLE; | 41 typedef void *HANDLE; |
43 #endif | 42 #endif |
44 | 43 |
45 namespace WebKit { | 44 namespace WebKit { |
46 class WebApplicationCacheHost; | 45 class WebApplicationCacheHost; |
47 class WebApplicationCacheHostClient; | 46 class WebApplicationCacheHostClient; |
48 class WebClipboard; | 47 class WebClipboard; |
49 class WebData; | 48 class WebData; |
50 class WebMessagePortChannel; | 49 class WebMessagePortChannel; |
51 class WebMimeRegistry; | 50 class WebMimeRegistry; |
52 class WebPluginListBuilder; | 51 class WebPluginListBuilder; |
53 class WebSandboxSupport; | 52 class WebSandboxSupport; |
54 class WebSharedWorkerRepository; | 53 class WebSharedWorkerRepository; |
55 class WebSocketStreamHandle; | 54 class WebSocketStreamHandle; |
56 class WebStorageNamespace; | 55 class WebStorageNamespace; |
57 class WebString; | 56 class WebString; |
58 class WebThemeEngine; | 57 class WebThemeEngine; |
59 class WebURL; | 58 class WebURL; |
60 class WebURLLoader; | 59 class WebURLLoader; |
61 struct WebCookie; | 60 struct WebCookie; |
62 struct WebPluginInfo; | 61 struct WebPluginInfo; |
63 template <typename T> class WebVector; | 62 template <typename T> class WebVector; |
64 | 63 |
65 // FIXME: Once our webkit api is complete, we should not need to inherit | 64 class WebKitClient { |
66 // from TemporaryGlue here. | |
67 class WebKitClient : public TemporaryGlue { | |
68 public: | 65 public: |
69 // Must return non-null. | 66 // Must return non-null. |
70 virtual WebClipboard* clipboard() = 0; | 67 virtual WebClipboard* clipboard() = 0; |
71 | 68 |
72 // Must return non-null. | 69 // Must return non-null. |
73 virtual WebMimeRegistry* mimeRegistry() = 0; | 70 virtual WebMimeRegistry* mimeRegistry() = 0; |
74 | 71 |
75 // May return null if sandbox support is not necessary | 72 // May return null if sandbox support is not necessary |
76 virtual WebSandboxSupport* sandboxSupport() = 0; | 73 virtual WebSandboxSupport* sandboxSupport() = 0; |
77 | 74 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Callable from a background WebKit thread. | 254 // Callable from a background WebKit thread. |
258 virtual void callOnMainThread(void (*func)()) = 0; | 255 virtual void callOnMainThread(void (*func)()) = 0; |
259 | 256 |
260 protected: | 257 protected: |
261 ~WebKitClient() { } | 258 ~WebKitClient() { } |
262 }; | 259 }; |
263 | 260 |
264 } // namespace WebKit | 261 } // namespace WebKit |
265 | 262 |
266 #endif | 263 #endif |
OLD | NEW |