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 "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/renderer/websharedworkerrepository_impl.h" | 10 #include "chrome/renderer/websharedworkerrepository_impl.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 36 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
37 virtual WebKit::WebFileSystem* fileSystem(); | 37 virtual WebKit::WebFileSystem* fileSystem(); |
38 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 38 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
39 virtual WebKit::WebCookieJar* cookieJar(); | 39 virtual WebKit::WebCookieJar* cookieJar(); |
40 virtual bool sandboxEnabled(); | 40 virtual bool sandboxEnabled(); |
41 virtual unsigned long long visitedLinkHash( | 41 virtual unsigned long long visitedLinkHash( |
42 const char* canonicalURL, size_t length); | 42 const char* canonicalURL, size_t length); |
43 virtual bool isLinkVisited(unsigned long long linkHash); | 43 virtual bool isLinkVisited(unsigned long long linkHash); |
44 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); | 44 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); |
45 virtual void prefetchHostName(const WebKit::WebString&); | 45 virtual void prefetchHostName(const WebKit::WebString&); |
| 46 virtual void cacheMetadata( |
| 47 const WebKit::WebURL&, double, const char*, size_t); |
46 virtual WebKit::WebString defaultLocale(); | 48 virtual WebKit::WebString defaultLocale(); |
47 virtual void suddenTerminationChanged(bool enabled); | 49 virtual void suddenTerminationChanged(bool enabled); |
48 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( | 50 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
49 const WebKit::WebString& path, unsigned quota); | 51 const WebKit::WebString& path, unsigned quota); |
50 virtual void dispatchStorageEvent( | 52 virtual void dispatchStorageEvent( |
51 const WebKit::WebString& key, const WebKit::WebString& old_value, | 53 const WebKit::WebString& key, const WebKit::WebString& old_value, |
52 const WebKit::WebString& new_value, const WebKit::WebString& origin, | 54 const WebKit::WebString& new_value, const WebKit::WebString& origin, |
53 const WebKit::WebURL& url, bool is_local_storage); | 55 const WebKit::WebURL& url, bool is_local_storage); |
54 | 56 |
55 virtual WebKit::WebKitClient::FileHandle databaseOpenFile( | 57 virtual WebKit::WebKitClient::FileHandle databaseOpenFile( |
(...skipping 25 matching lines...) Expand all Loading... |
81 | 83 |
82 class FileSystem : public webkit_glue::WebFileSystemImpl { | 84 class FileSystem : public webkit_glue::WebFileSystemImpl { |
83 public: | 85 public: |
84 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 86 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
85 virtual bool getFileModificationTime(const WebKit::WebString& path, | 87 virtual bool getFileModificationTime(const WebKit::WebString& path, |
86 double& result); | 88 double& result); |
87 virtual base::PlatformFile openFile(const WebKit::WebString& path, | 89 virtual base::PlatformFile openFile(const WebKit::WebString& path, |
88 int mode); | 90 int mode); |
89 }; | 91 }; |
90 | 92 |
| 93 bool CheckPreparsedJsCachingEnabled() const; |
| 94 |
91 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
92 class SandboxSupport : public WebKit::WebSandboxSupport { | 96 class SandboxSupport : public WebKit::WebSandboxSupport { |
93 public: | 97 public: |
94 virtual bool ensureFontLoaded(HFONT); | 98 virtual bool ensureFontLoaded(HFONT); |
95 }; | 99 }; |
96 #elif defined(OS_LINUX) | 100 #elif defined(OS_LINUX) |
97 class SandboxSupport : public WebKit::WebSandboxSupport { | 101 class SandboxSupport : public WebKit::WebSandboxSupport { |
98 public: | 102 public: |
99 virtual WebKit::WebString getFontFamilyForCharacters( | 103 virtual WebKit::WebString getFontFamilyForCharacters( |
100 const WebKit::WebUChar* characters, size_t numCharacters); | 104 const WebKit::WebUChar* characters, size_t numCharacters); |
(...skipping 29 matching lines...) Expand all Loading... |
130 int sudden_termination_disables_; | 134 int sudden_termination_disables_; |
131 | 135 |
132 // Implementation of the WebSharedWorkerRepository APIs (provides an interface | 136 // Implementation of the WebSharedWorkerRepository APIs (provides an interface |
133 // to WorkerService on the browser thread. | 137 // to WorkerService on the browser thread. |
134 WebSharedWorkerRepositoryImpl shared_worker_repository_; | 138 WebSharedWorkerRepositoryImpl shared_worker_repository_; |
135 | 139 |
136 scoped_ptr<WebKit::WebIndexedDatabase> web_indexed_database_; | 140 scoped_ptr<WebKit::WebIndexedDatabase> web_indexed_database_; |
137 }; | 141 }; |
138 | 142 |
139 #endif // CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ | 143 #endif // CHROME_RENDERER_RENDERER_WEBKITCLIENT_IMPL_H_ |
OLD | NEW |