OLD | NEW |
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 #include <math.h> | 5 #include <math.h> |
6 #include "config.h" | 6 #include "config.h" |
7 | 7 |
8 #include "FrameView.h" | 8 #include "FrameView.h" |
9 #include "ScrollView.h" | 9 #include "ScrollView.h" |
10 #include <wtf/Assertions.h> | 10 #include <wtf/Assertions.h> |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "webkit/glue/webplugininfo.h" | 37 #include "webkit/glue/webplugininfo.h" |
38 #include "webkit/glue/websocketstreamhandle_impl.h" | 38 #include "webkit/glue/websocketstreamhandle_impl.h" |
39 #include "webkit/glue/weburlloader_impl.h" | 39 #include "webkit/glue/weburlloader_impl.h" |
40 | 40 |
41 using WebKit::WebApplicationCacheHost; | 41 using WebKit::WebApplicationCacheHost; |
42 using WebKit::WebApplicationCacheHostClient; | 42 using WebKit::WebApplicationCacheHostClient; |
43 using WebKit::WebCookie; | 43 using WebKit::WebCookie; |
44 using WebKit::WebData; | 44 using WebKit::WebData; |
45 using WebKit::WebLocalizedString; | 45 using WebKit::WebLocalizedString; |
46 using WebKit::WebPluginListBuilder; | 46 using WebKit::WebPluginListBuilder; |
47 using WebKit::WebStorageNamespace; | |
48 using WebKit::WebString; | 47 using WebKit::WebString; |
49 using WebKit::WebSocketStreamHandle; | 48 using WebKit::WebSocketStreamHandle; |
50 using WebKit::WebThemeEngine; | 49 using WebKit::WebThemeEngine; |
51 using WebKit::WebURL; | 50 using WebKit::WebURL; |
52 using WebKit::WebURLLoader; | 51 using WebKit::WebURLLoader; |
53 using WebKit::WebVector; | 52 using WebKit::WebVector; |
54 | 53 |
55 namespace webkit_glue { | 54 namespace webkit_glue { |
56 | 55 |
57 static int ToMessageID(WebLocalizedString::Name name) { | 56 static int ToMessageID(WebLocalizedString::Name name) { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 283 } |
285 | 284 |
286 void WebKitClientImpl::stopSharedTimer() { | 285 void WebKitClientImpl::stopSharedTimer() { |
287 shared_timer_.Stop(); | 286 shared_timer_.Stop(); |
288 } | 287 } |
289 | 288 |
290 void WebKitClientImpl::callOnMainThread(void (*func)()) { | 289 void WebKitClientImpl::callOnMainThread(void (*func)()) { |
291 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); | 290 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); |
292 } | 291 } |
293 | 292 |
294 WebStorageNamespace* WebKitClientImpl::createLocalStorageNamespace( | |
295 const WebString& path, unsigned quota) { | |
296 NOTREACHED(); | |
297 return 0; | |
298 } | |
299 | |
300 WebStorageNamespace* WebKitClientImpl::createSessionStorageNamespace() { | |
301 NOTREACHED(); | |
302 return 0; | |
303 } | |
304 | |
305 void WebKitClientImpl::dispatchStorageEvent(const WebString& key, | |
306 const WebString& oldValue, const WebString& newValue, | |
307 const WebString& origin, bool isLocalStorage) { | |
308 NOTREACHED(); | |
309 } | |
310 | |
311 base::PlatformFile WebKitClientImpl::databaseOpenFile( | 293 base::PlatformFile WebKitClientImpl::databaseOpenFile( |
312 const WebKit::WebString& file_name, int desired_flags, | 294 const WebKit::WebString& file_name, int desired_flags, |
313 base::PlatformFile* dir_handle) { | 295 base::PlatformFile* dir_handle) { |
314 if (dir_handle) | 296 if (dir_handle) |
315 *dir_handle = base::kInvalidPlatformFileValue; | 297 *dir_handle = base::kInvalidPlatformFileValue; |
316 return base::kInvalidPlatformFileValue; | 298 return base::kInvalidPlatformFileValue; |
317 } | 299 } |
318 | 300 |
319 int WebKitClientImpl::databaseDeleteFile( | 301 int WebKitClientImpl::databaseDeleteFile( |
320 const WebKit::WebString& file_name, bool sync_dir) { | 302 const WebKit::WebString& file_name, bool sync_dir) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 return file_util::DirectoryExists(file_path); | 389 return file_util::DirectoryExists(file_path); |
408 } | 390 } |
409 | 391 |
410 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { | 392 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { |
411 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 393 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
412 GURL file_url = net::FilePathToFileURL(file_path); | 394 GURL file_url = net::FilePathToFileURL(file_path); |
413 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); | 395 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); |
414 } | 396 } |
415 | 397 |
416 } // namespace webkit_glue | 398 } // namespace webkit_glue |
OLD | NEW |