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

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

Issue 258010: Reverting 27759. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Application Cache -------------------------------------------- 78 // Application Cache --------------------------------------------
79 79
80 // May return null if the process type doesn't involve appcaching. 80 // May return null if the process type doesn't involve appcaching.
81 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCacheHostClient*) = 0; 81 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCacheHostClient*) = 0;
82 82
83 83
84 // DOM Storage -------------------------------------------------- 84 // DOM Storage --------------------------------------------------
85 85
86 // Return a LocalStorage namespace that corresponds to the following 86 // Return a LocalStorage namespace that corresponds to the following
87 // path. 87 // path.
88 virtual WebStorageNamespace* createLocalStorageNamespace( 88 virtual WebStorageNamespace* createLocalStorageNamespace(const WebString& path) = 0;
89 const WebString& path) = 0;
90 89
91 // Return a new SessionStorage namespace. 90 // Return a new SessionStorage namespace.
92 virtual WebStorageNamespace* createSessionStorageNamespace() = 0; 91 virtual WebStorageNamespace* createSessionStorageNamespace() = 0;
93 92
93 // Called when storage events fire.
94 virtual void dispatchStorageEvent(const WebString& key, const WebString& oldValue,
95 const WebString& newValue, const WebString& origin,
96 bool isLocalStorage) = 0;
97
94 98
95 // File ---------------------------------------------------------------- 99 // File ----------------------------------------------------------------
96 100
97 // Various file/directory related functions. These map 1:1 with 101 // Various file/directory related functions. These map 1:1 with
98 // functions in WebCore's FileSystem.h. 102 // functions in WebCore's FileSystem.h.
99 virtual bool fileExists(const WebString& path) = 0; 103 virtual bool fileExists(const WebString& path) = 0;
100 virtual bool deleteFile(const WebString& path) = 0; 104 virtual bool deleteFile(const WebString& path) = 0;
101 virtual bool deleteEmptyDirectory(const WebString& path) = 0; 105 virtual bool deleteEmptyDirectory(const WebString& path) = 0;
102 virtual bool getFileSize(const WebString& path, long long& result) = 0; 106 virtual bool getFileSize(const WebString& path, long long& result) = 0;
103 virtual bool getFileModificationTime(const WebString& path, time_t& result) = 0; 107 virtual bool getFileModificationTime(const WebString& path, time_t& result) = 0;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Callable from a background WebKit thread. 231 // Callable from a background WebKit thread.
228 virtual void callOnMainThread(void (*func)()) = 0; 232 virtual void callOnMainThread(void (*func)()) = 0;
229 233
230 protected: 234 protected:
231 ~WebKitClient() { } 235 ~WebKitClient() { }
232 }; 236 };
233 237
234 } // namespace WebKit 238 } // namespace WebKit
235 239
236 #endif 240 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webstoragenamespace_impl.cc ('k') | webkit/api/public/WebStorageEventDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698