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

Side by Side Diff: webkit/glue/webkitclient_impl.h

Issue 159778: Make LocalStorage persistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « webkit/api/src/WebKit.cpp ('k') | webkit/glue/webkitclient_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef WEBKIT_CLIENT_IMPL_H_ 5 #ifndef WEBKIT_CLIENT_IMPL_H_
6 #define WEBKIT_CLIENT_IMPL_H_ 6 #define WEBKIT_CLIENT_IMPL_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "webkit/api/public/WebKitClient.h" 10 #include "webkit/api/public/WebKitClient.h"
(...skipping 23 matching lines...) Expand all
34 virtual WebKit::WebString queryLocalizedString( 34 virtual WebKit::WebString queryLocalizedString(
35 WebKit::WebLocalizedString::Name name, int numeric_value); 35 WebKit::WebLocalizedString::Name name, int numeric_value);
36 virtual double currentTime(); 36 virtual double currentTime();
37 virtual void setSharedTimerFiredFunction(void (*func)()); 37 virtual void setSharedTimerFiredFunction(void (*func)());
38 virtual void setSharedTimerFireTime(double fireTime); 38 virtual void setSharedTimerFireTime(double fireTime);
39 virtual void stopSharedTimer(); 39 virtual void stopSharedTimer();
40 virtual void callOnMainThread(void (*func)()); 40 virtual void callOnMainThread(void (*func)());
41 virtual void suddenTerminationChanged(bool enabled) { } 41 virtual void suddenTerminationChanged(bool enabled) { }
42 42
43 virtual base::PlatformFile databaseOpenFile( 43 virtual base::PlatformFile databaseOpenFile(
44 const WebKit::WebString& file_name, int desired_flags); 44 const WebKit::WebString& file_name, int desired_flags);
45 virtual bool databaseDeleteFile(const WebKit::WebString& file_name); 45 virtual bool databaseDeleteFile(const WebKit::WebString& file_name);
46 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name); 46 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name);
47 virtual long long databaseGetFileSize(const WebKit::WebString& file_name); 47 virtual long long databaseGetFileSize(const WebKit::WebString& file_name);
48 48
49 virtual bool fileExists(const WebKit::WebString& path);
50 virtual bool deleteFile(const WebKit::WebString& path);
51 virtual bool deleteEmptyDirectory(const WebKit::WebString& path);
52 virtual bool getFileSize(const WebKit::WebString& path, long long& result);
53 virtual bool getFileModificationTime(const WebKit::WebString& path,
54 time_t& result);
55 virtual WebKit::WebString directoryName(const WebKit::WebString& path);
56 virtual WebKit::WebString pathByAppendingComponent(
57 const WebKit::WebString& path, const WebKit::WebString& component);
58 virtual bool makeAllDirectories(const WebKit::WebString& path);
59
49 private: 60 private:
50 void DoTimeout() { 61 void DoTimeout() {
51 if (shared_timer_func_) 62 if (shared_timer_func_)
52 shared_timer_func_(); 63 shared_timer_func_();
53 } 64 }
54 65
55 MessageLoop* main_loop_; 66 MessageLoop* main_loop_;
56 base::OneShotTimer<WebKitClientImpl> shared_timer_; 67 base::OneShotTimer<WebKitClientImpl> shared_timer_;
57 void (*shared_timer_func_)(); 68 void (*shared_timer_func_)();
58 69
59 #if defined(OS_WIN) 70 #if defined(OS_WIN)
60 WebThemeEngineImpl theme_engine_; 71 WebThemeEngineImpl theme_engine_;
61 #endif 72 #endif
62 }; 73 };
63 74
64 } // namespace webkit_glue 75 } // namespace webkit_glue
65 76
66 #endif // WEBKIT_CLIENT_IMPL_H_ 77 #endif // WEBKIT_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/api/src/WebKit.cpp ('k') | webkit/glue/webkitclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698