OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLATFORM_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
12 #include "third_party/WebKit/public/platform/Platform.h" | 12 #include "third_party/WebKit/public/platform/Platform.h" |
13 #include "third_party/WebKit/public/platform/WebURLError.h" | 13 #include "third_party/WebKit/public/platform/WebURLError.h" |
14 #include "ui/base/layout.h" | 14 #include "ui/base/layout.h" |
15 #include "webkit/glue/resource_loader_bridge.h" | 15 #include "webkit/child/resource_loader_bridge.h" |
16 #include "webkit/glue/webkit_glue_export.h" | 16 #include "webkit/child/webkit_child_export.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class MessageLoop; | 19 class MessageLoop; |
20 } | 20 } |
21 | 21 |
22 namespace WebKit { | 22 namespace WebKit { |
23 class WebSocketStreamHandle; | 23 class WebSocketStreamHandle; |
24 } | 24 } |
25 | 25 |
26 namespace webkit_glue { | 26 namespace webkit_glue { |
27 | 27 |
28 class WebSocketStreamHandleDelegate; | 28 class WebSocketStreamHandleDelegate; |
29 class WebSocketStreamHandleBridge; | 29 class WebSocketStreamHandleBridge; |
30 | 30 |
31 class WEBKIT_GLUE_EXPORT WebKitPlatformSupportImpl : | 31 class WEBKIT_CHILD_EXPORT WebKitPlatformSupportImpl : |
32 NON_EXPORTED_BASE(public WebKit::Platform) { | 32 NON_EXPORTED_BASE(public WebKit::Platform) { |
33 public: | 33 public: |
34 WebKitPlatformSupportImpl(); | 34 WebKitPlatformSupportImpl(); |
35 virtual ~WebKitPlatformSupportImpl(); | 35 virtual ~WebKitPlatformSupportImpl(); |
36 | 36 |
37 // Platform methods (partial implementation): | 37 // Platform methods (partial implementation): |
38 virtual base::PlatformFile databaseOpenFile( | 38 virtual base::PlatformFile databaseOpenFile( |
39 const WebKit::WebString& vfs_file_name, int desired_flags); | 39 const WebKit::WebString& vfs_file_name, int desired_flags); |
40 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 40 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, |
41 bool sync_dir); | 41 bool sync_dir); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 base::MessageLoop* main_loop_; | 145 base::MessageLoop* main_loop_; |
146 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; | 146 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; |
147 void (*shared_timer_func_)(); | 147 void (*shared_timer_func_)(); |
148 double shared_timer_fire_time_; | 148 double shared_timer_fire_time_; |
149 bool shared_timer_fire_time_was_set_while_suspended_; | 149 bool shared_timer_fire_time_was_set_while_suspended_; |
150 int shared_timer_suspended_; // counter | 150 int shared_timer_suspended_; // counter |
151 }; | 151 }; |
152 | 152 |
153 } // namespace webkit_glue | 153 } // namespace webkit_glue |
154 | 154 |
155 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 155 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |