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 CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ |
6 #define CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ | 6 #define CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "chrome/renderer/websharedworkerrepository_impl.h" | 9 #include "chrome/renderer/websharedworkerrepository_impl.h" |
10 #include "webkit/glue/simple_webmimeregistry_impl.h" | 10 #include "webkit/glue/simple_webmimeregistry_impl.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 RendererWebKitClientImpl() : sudden_termination_disables_(0) {} | 29 RendererWebKitClientImpl() : sudden_termination_disables_(0) {} |
30 | 30 |
31 // WebKitClient methods: | 31 // WebKitClient methods: |
32 virtual WebKit::WebClipboard* clipboard(); | 32 virtual WebKit::WebClipboard* clipboard(); |
33 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 33 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
34 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 34 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
35 virtual WebKit::WebCookieJar* cookieJar(); | 35 virtual WebKit::WebCookieJar* cookieJar(); |
36 virtual bool sandboxEnabled(); | 36 virtual bool sandboxEnabled(); |
37 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 37 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
| 38 virtual bool getFileModificationTime(const WebKit::WebString& path, |
| 39 double& result); |
38 virtual unsigned long long visitedLinkHash( | 40 virtual unsigned long long visitedLinkHash( |
39 const char* canonicalURL, size_t length); | 41 const char* canonicalURL, size_t length); |
40 virtual bool isLinkVisited(unsigned long long linkHash); | 42 virtual bool isLinkVisited(unsigned long long linkHash); |
41 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); | 43 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); |
42 virtual void prefetchHostName(const WebKit::WebString&); | 44 virtual void prefetchHostName(const WebKit::WebString&); |
43 virtual WebKit::WebString defaultLocale(); | 45 virtual WebKit::WebString defaultLocale(); |
44 virtual void suddenTerminationChanged(bool enabled); | 46 virtual void suddenTerminationChanged(bool enabled); |
45 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( | 47 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
46 const WebKit::WebString& path, unsigned quota); | 48 const WebKit::WebString& path, unsigned quota); |
47 virtual void dispatchStorageEvent( | 49 virtual void dispatchStorageEvent( |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // we tell the browser to enable fast termination. | 114 // we tell the browser to enable fast termination. |
113 int sudden_termination_disables_; | 115 int sudden_termination_disables_; |
114 | 116 |
115 // Implementation of the WebSharedWorkerRepository APIs (provides an interface | 117 // Implementation of the WebSharedWorkerRepository APIs (provides an interface |
116 // to WorkerService on the browser thread. | 118 // to WorkerService on the browser thread. |
117 WebSharedWorkerRepositoryImpl shared_worker_repository_; | 119 WebSharedWorkerRepositoryImpl shared_worker_repository_; |
118 | 120 |
119 }; | 121 }; |
120 | 122 |
121 #endif // CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ | 123 #endif // CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ |
OLD | NEW |