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

Side by Side Diff: webkit/api/public/WebKitClient.h

Issue 294025: DevTools: Implement raw cookies access for inspector. (Closed)
Patch Set: '' Created 11 years, 1 month 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
OLDNEW
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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 "webkit/api/src/TemporaryGlue.h" 39 #include "webkit/api/src/TemporaryGlue.h"
39 40
40 #ifdef WIN32 41 #ifdef WIN32
41 typedef void *HANDLE; 42 typedef void *HANDLE;
42 #endif 43 #endif
43 44
44 namespace WebKit { 45 namespace WebKit {
45 class WebApplicationCacheHost; 46 class WebApplicationCacheHost;
46 class WebApplicationCacheHostClient; 47 class WebApplicationCacheHostClient;
47 class WebClipboard; 48 class WebClipboard;
48 class WebData; 49 class WebData;
49 class WebMessagePortChannel; 50 class WebMessagePortChannel;
50 class WebMimeRegistry; 51 class WebMimeRegistry;
51 class WebPluginListBuilder; 52 class WebPluginListBuilder;
52 class WebSandboxSupport; 53 class WebSandboxSupport;
53 class WebSocketStreamHandle; 54 class WebSocketStreamHandle;
54 class WebStorageNamespace; 55 class WebStorageNamespace;
55 class WebString; 56 class WebString;
56 class WebThemeEngine; 57 class WebThemeEngine;
57 class WebURL; 58 class WebURL;
58 class WebURLLoader; 59 class WebURLLoader;
60 struct WebCookie;
59 struct WebPluginInfo; 61 struct WebPluginInfo;
60 template <typename T> class WebVector; 62 template <typename T> class WebVector;
61 63
62 // FIXME: Once our webkit api is complete, we should not need to inherit 64 // FIXME: Once our webkit api is complete, we should not need to inherit
63 // from TemporaryGlue here. 65 // from TemporaryGlue here.
64 class WebKitClient : public TemporaryGlue { 66 class WebKitClient : public TemporaryGlue {
65 public: 67 public:
66 // Must return non-null. 68 // Must return non-null.
67 virtual WebClipboard* clipboard() = 0; 69 virtual WebClipboard* clipboard() = 0;
68 70
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Creates a Message Port Channel. This can be called on any thread. 164 // Creates a Message Port Channel. This can be called on any thread.
163 // The returned object should only be used on the thread it was created on. 165 // The returned object should only be used on the thread it was created on.
164 virtual WebMessagePortChannel* createMessagePortChannel() = 0; 166 virtual WebMessagePortChannel* createMessagePortChannel() = 0;
165 167
166 168
167 // Network ------------------------------------------------------------- 169 // Network -------------------------------------------------------------
168 170
169 virtual void setCookies( 171 virtual void setCookies(
170 const WebURL& url, const WebURL& policyURL, const WebString& cookies) = 0; 172 const WebURL& url, const WebURL& policyURL, const WebString& cookies) = 0;
171 virtual WebString cookies(const WebURL& url, const WebURL& policyURL) = 0; 173 virtual WebString cookies(const WebURL& url, const WebURL& policyURL) = 0;
174 virtual bool rawCookies(const WebURL& url, const WebURL& policyURL, WebVector<WebCookie>*) = 0;
175 virtual void deleteCookie(const WebURL& url, const WebString& cookieName) = 0;
172 176
173 // A suggestion to prefetch IP information for the given hostname. 177 // A suggestion to prefetch IP information for the given hostname.
174 virtual void prefetchHostName(const WebString&) = 0; 178 virtual void prefetchHostName(const WebString&) = 0;
175 179
176 // Returns a new WebURLLoader instance. 180 // Returns a new WebURLLoader instance.
177 virtual WebURLLoader* createURLLoader() = 0; 181 virtual WebURLLoader* createURLLoader() = 0;
178 182
179 // Returns a new WebSocketStreamHandle instance. 183 // Returns a new WebSocketStreamHandle instance.
180 virtual WebSocketStreamHandle* createSocketStreamHandle() = 0; 184 virtual WebSocketStreamHandle* createSocketStreamHandle() = 0;
181 185
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Callable from a background WebKit thread. 247 // Callable from a background WebKit thread.
244 virtual void callOnMainThread(void (*func)()) = 0; 248 virtual void callOnMainThread(void (*func)()) = 0;
245 249
246 protected: 250 protected:
247 ~WebKitClient() { } 251 ~WebKitClient() { }
248 }; 252 };
249 253
250 } // namespace WebKit 254 } // namespace WebKit
251 255
252 #endif 256 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698