Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the 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 "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 34 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, |
| 35 bool sync_dir); | 35 bool sync_dir); |
| 36 virtual long databaseGetFileAttributes( | 36 virtual long databaseGetFileAttributes( |
| 37 const WebKit::WebString& vfs_file_name); | 37 const WebKit::WebString& vfs_file_name); |
| 38 virtual long long databaseGetFileSize(const WebKit::WebString& vfs_file_name); | 38 virtual long long databaseGetFileSize(const WebKit::WebString& vfs_file_name); |
| 39 virtual WebKit::WebString signedPublicKeyAndChallengeString( | 39 virtual WebKit::WebString signedPublicKeyAndChallengeString( |
| 40 unsigned key_size_index, const WebKit::WebString& challenge, | 40 unsigned key_size_index, const WebKit::WebString& challenge, |
| 41 const WebKit::WebURL& url); | 41 const WebKit::WebURL& url); |
| 42 virtual size_t memoryUsageMB(); | 42 virtual size_t memoryUsageMB(); |
| 43 virtual size_t actualMemoryUsageMB(); | 43 virtual size_t actualMemoryUsageMB(); |
| 44 virtual WebKit::WebAudioDevice* createAudioDevice( | |
| 45 size_t buffer_size, unsigned channels, double sample_rate, | |
|
scherkus (not reviewing)
2011/01/12 03:11:43
nit: unsigned -> int
Chris Rogers
2011/01/12 21:26:10
This one I can't easily change since the base clas
| |
| 46 WebKit::WebAudioDevice::RenderCallback* callback); | |
| 44 virtual WebKit::WebURLLoader* createURLLoader(); | 47 virtual WebKit::WebURLLoader* createURLLoader(); |
| 45 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); | 48 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
| 46 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 49 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
| 47 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 50 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
| 48 virtual void decrementStatsCounter(const char* name); | 51 virtual void decrementStatsCounter(const char* name); |
| 49 virtual void incrementStatsCounter(const char* name); | 52 virtual void incrementStatsCounter(const char* name); |
| 50 virtual void histogramCustomCounts( | 53 virtual void histogramCustomCounts( |
| 51 const char* name, int sample, int min, int max, int bucket_count); | 54 const char* name, int sample, int min, int max, int bucket_count); |
| 52 virtual void histogramEnumeration( | 55 virtual void histogramEnumeration( |
| 53 const char* name, int sample, int boundary_value); | 56 const char* name, int sample, int boundary_value); |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 65 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); | 68 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); |
| 66 virtual WebKit::WebString queryLocalizedString( | 69 virtual WebKit::WebString queryLocalizedString( |
| 67 WebKit::WebLocalizedString::Name name, | 70 WebKit::WebLocalizedString::Name name, |
| 68 const WebKit::WebString& value1, const WebKit::WebString& value2); | 71 const WebKit::WebString& value1, const WebKit::WebString& value2); |
| 69 virtual void suddenTerminationChanged(bool enabled) { } | 72 virtual void suddenTerminationChanged(bool enabled) { } |
| 70 virtual double currentTime(); | 73 virtual double currentTime(); |
| 71 virtual void setSharedTimerFiredFunction(void (*func)()); | 74 virtual void setSharedTimerFiredFunction(void (*func)()); |
| 72 virtual void setSharedTimerFireTime(double fireTime); | 75 virtual void setSharedTimerFireTime(double fireTime); |
| 73 virtual void stopSharedTimer(); | 76 virtual void stopSharedTimer(); |
| 74 virtual void callOnMainThread(void (*func)(void*), void* context); | 77 virtual void callOnMainThread(void (*func)(void*), void* context); |
| 75 | 78 |
|
scherkus (not reviewing)
2011/01/12 03:11:43
nit: remove blank line
Chris Rogers
2011/01/12 21:26:10
Done.
| |
| 79 | |
| 76 void SuspendSharedTimer(); | 80 void SuspendSharedTimer(); |
| 77 void ResumeSharedTimer(); | 81 void ResumeSharedTimer(); |
| 78 | 82 |
| 79 private: | 83 private: |
| 80 void DoTimeout() { | 84 void DoTimeout() { |
| 81 if (shared_timer_func_ && !shared_timer_suspended_) | 85 if (shared_timer_func_ && !shared_timer_suspended_) |
| 82 shared_timer_func_(); | 86 shared_timer_func_(); |
| 83 } | 87 } |
| 84 | 88 |
| 85 MessageLoop* main_loop_; | 89 MessageLoop* main_loop_; |
| 86 base::OneShotTimer<WebKitClientImpl> shared_timer_; | 90 base::OneShotTimer<WebKitClientImpl> shared_timer_; |
| 87 void (*shared_timer_func_)(); | 91 void (*shared_timer_func_)(); |
| 88 double shared_timer_fire_time_; | 92 double shared_timer_fire_time_; |
| 89 int shared_timer_suspended_; // counter | 93 int shared_timer_suspended_; // counter |
| 90 | 94 |
| 91 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) | 95 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) |
| 92 WebThemeEngineImpl theme_engine_; | 96 WebThemeEngineImpl theme_engine_; |
| 93 #endif | 97 #endif |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 } // namespace webkit_glue | 100 } // namespace webkit_glue |
| 97 | 101 |
| 98 #endif // WEBKIT_CLIENT_IMPL_H_ | 102 #endif // WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |