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

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

Issue 147248: DOM Storage: Add renderer-process IPC code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.cc ('k') | webkit/api/src/StorageAreaProxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebLocalizedString.h" 35 #include "WebLocalizedString.h"
36 36
37 namespace WebKit { 37 namespace WebKit {
38 class WebClipboard; 38 class WebClipboard;
39 class WebData; 39 class WebData;
40 class WebMimeRegistry; 40 class WebMimeRegistry;
41 class WebPluginListBuilder; 41 class WebPluginListBuilder;
42 class WebSandboxSupport; 42 class WebSandboxSupport;
43 class WebStorageNamespace;
43 class WebString; 44 class WebString;
44 class WebThemeEngine; 45 class WebThemeEngine;
45 class WebURL; 46 class WebURL;
46 class WebURLLoader; 47 class WebURLLoader;
47 struct WebPluginInfo; 48 struct WebPluginInfo;
48 template <typename T> class WebVector; 49 template <typename T> class WebVector;
49 50
50 class WebKitClient { 51 class WebKitClient {
51 public: 52 public:
52 // Must return non-null. 53 // Must return non-null.
53 virtual WebClipboard* clipboard() = 0; 54 virtual WebClipboard* clipboard() = 0;
54 55
55 // Must return non-null. 56 // Must return non-null.
56 virtual WebMimeRegistry* mimeRegistry() = 0; 57 virtual WebMimeRegistry* mimeRegistry() = 0;
57 58
58 // May return null if sandbox support is not necessary 59 // May return null if sandbox support is not necessary
59 virtual WebSandboxSupport* sandboxSupport() = 0; 60 virtual WebSandboxSupport* sandboxSupport() = 0;
60 61
61 // May return null on some platforms. 62 // May return null on some platforms.
62 virtual WebThemeEngine* themeEngine() = 0; 63 virtual WebThemeEngine* themeEngine() = 0;
63 64
64 65
66 // DOM Storage --------------------------------------------------
67
68 // Return a LocalStorage namespace that corresponds to the following
69 // path.
70 virtual WebStorageNamespace* createLocalStorageNamespace(
71 const WebString& path) = 0;
72
73 // Return a new SessionStorage namespace.
74 virtual WebStorageNamespace* createSessionStorageNamespace() = 0;
75
76
65 // File ---------------------------------------------------------------- 77 // File ----------------------------------------------------------------
66 78
67 virtual bool getFileSize(const WebString& path, long long& result) = 0; 79 virtual bool getFileSize(const WebString& path, long long& result) = 0;
68 80
69 81
70 // History ------------------------------------------------------------- 82 // History -------------------------------------------------------------
71 83
72 // Returns the hash for the given canonicalized URL for use in visited 84 // Returns the hash for the given canonicalized URL for use in visited
73 // link coloring. 85 // link coloring.
74 virtual unsigned long long visitedLinkHash( 86 virtual unsigned long long visitedLinkHash(
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual void setSharedTimerFireTime(double fireTime) = 0; 152 virtual void setSharedTimerFireTime(double fireTime) = 0;
141 virtual void stopSharedTimer() = 0; 153 virtual void stopSharedTimer() = 0;
142 154
143 // Callable from a background WebKit thread. 155 // Callable from a background WebKit thread.
144 virtual void callOnMainThread(void (*func)()) = 0; 156 virtual void callOnMainThread(void (*func)()) = 0;
145 }; 157 };
146 158
147 } // namespace WebKit 159 } // namespace WebKit
148 160
149 #endif 161 #endif
OLDNEW
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.cc ('k') | webkit/api/src/StorageAreaProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698