Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/worker/worker_webkitplatformsupport_impl.h

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/child/webkitplatformsupport_impl.h" 9 #include "content/child/webkitplatformsupport_impl.h"
10 #include "third_party/WebKit/public/platform/WebIDBFactory.h" 10 #include "third_party/WebKit/public/platform/WebIDBFactory.h"
11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" 11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
12 12
13 namespace base { 13 namespace base {
14 class MessageLoopProxy; 14 class MessageLoopProxy;
15 } 15 }
16 16
17 namespace IPC { 17 namespace IPC {
18 class SyncMessageFilter; 18 class SyncMessageFilter;
19 } 19 }
20 20
21 namespace WebKit { 21 namespace blink {
22 class WebFileUtilities; 22 class WebFileUtilities;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 class QuotaMessageFilter; 26 class QuotaMessageFilter;
27 class ThreadSafeSender; 27 class ThreadSafeSender;
28 class WebFileSystemImpl; 28 class WebFileSystemImpl;
29 29
30 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, 30 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl,
31 public WebKit::WebMimeRegistry { 31 public blink::WebMimeRegistry {
32 public: 32 public:
33 WorkerWebKitPlatformSupportImpl( 33 WorkerWebKitPlatformSupportImpl(
34 ThreadSafeSender* sender, 34 ThreadSafeSender* sender,
35 IPC::SyncMessageFilter* sync_message_filter, 35 IPC::SyncMessageFilter* sync_message_filter,
36 QuotaMessageFilter* quota_message_filter); 36 QuotaMessageFilter* quota_message_filter);
37 virtual ~WorkerWebKitPlatformSupportImpl(); 37 virtual ~WorkerWebKitPlatformSupportImpl();
38 38
39 // WebKitPlatformSupport methods: 39 // WebKitPlatformSupport methods:
40 virtual WebKit::WebClipboard* clipboard(); 40 virtual blink::WebClipboard* clipboard();
41 virtual WebKit::WebMimeRegistry* mimeRegistry(); 41 virtual blink::WebMimeRegistry* mimeRegistry();
42 virtual WebKit::WebFileSystem* fileSystem(); 42 virtual blink::WebFileSystem* fileSystem();
43 virtual WebKit::WebFileUtilities* fileUtilities(); 43 virtual blink::WebFileUtilities* fileUtilities();
44 virtual WebKit::WebSandboxSupport* sandboxSupport(); 44 virtual blink::WebSandboxSupport* sandboxSupport();
45 virtual bool sandboxEnabled(); 45 virtual bool sandboxEnabled();
46 virtual unsigned long long visitedLinkHash(const char* canonicalURL, 46 virtual unsigned long long visitedLinkHash(const char* canonicalURL,
47 size_t length); 47 size_t length);
48 virtual bool isLinkVisited(unsigned long long linkHash); 48 virtual bool isLinkVisited(unsigned long long linkHash);
49 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); 49 virtual blink::WebMessagePortChannel* createMessagePortChannel();
50 virtual void setCookies(const WebKit::WebURL& url, 50 virtual void setCookies(const blink::WebURL& url,
51 const WebKit::WebURL& first_party_for_cookies, 51 const blink::WebURL& first_party_for_cookies,
52 const WebKit::WebString& value); 52 const blink::WebString& value);
53 virtual WebKit::WebString cookies( 53 virtual blink::WebString cookies(
54 const WebKit::WebURL& url, 54 const blink::WebURL& url,
55 const WebKit::WebURL& first_party_for_cookies); 55 const blink::WebURL& first_party_for_cookies);
56 virtual WebKit::WebString defaultLocale(); 56 virtual blink::WebString defaultLocale();
57 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(); 57 virtual blink::WebStorageNamespace* createLocalStorageNamespace();
58 virtual void dispatchStorageEvent( 58 virtual void dispatchStorageEvent(
59 const WebKit::WebString& key, const WebKit::WebString& old_value, 59 const blink::WebString& key, const blink::WebString& old_value,
60 const WebKit::WebString& new_value, const WebKit::WebString& origin, 60 const blink::WebString& new_value, const blink::WebString& origin,
61 const WebKit::WebURL& url, bool is_local_storage); 61 const blink::WebURL& url, bool is_local_storage);
62 62
63 virtual WebKit::Platform::FileHandle databaseOpenFile( 63 virtual blink::Platform::FileHandle databaseOpenFile(
64 const WebKit::WebString& vfs_file_name, int desired_flags); 64 const blink::WebString& vfs_file_name, int desired_flags);
65 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, 65 virtual int databaseDeleteFile(const blink::WebString& vfs_file_name,
66 bool sync_dir); 66 bool sync_dir);
67 virtual long databaseGetFileAttributes( 67 virtual long databaseGetFileAttributes(
68 const WebKit::WebString& vfs_file_name); 68 const blink::WebString& vfs_file_name);
69 virtual long long databaseGetFileSize( 69 virtual long long databaseGetFileSize(
70 const WebKit::WebString& vfs_file_name); 70 const blink::WebString& vfs_file_name);
71 virtual long long databaseGetSpaceAvailableForOrigin( 71 virtual long long databaseGetSpaceAvailableForOrigin(
72 const WebKit::WebString& origin_identifier); 72 const blink::WebString& origin_identifier);
73 73
74 virtual WebKit::WebBlobRegistry* blobRegistry(); 74 virtual blink::WebBlobRegistry* blobRegistry();
75 75
76 virtual WebKit::WebIDBFactory* idbFactory(); 76 virtual blink::WebIDBFactory* idbFactory();
77 77
78 // WebMimeRegistry methods: 78 // WebMimeRegistry methods:
79 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( 79 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType(
80 const WebKit::WebString&); 80 const blink::WebString&);
81 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( 81 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType(
82 const WebKit::WebString&); 82 const blink::WebString&);
83 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( 83 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
84 const WebKit::WebString&); 84 const blink::WebString&);
85 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( 85 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType(
86 const WebKit::WebString&, 86 const blink::WebString&,
87 const WebKit::WebString&, 87 const blink::WebString&,
88 const WebKit::WebString&); 88 const blink::WebString&);
89 virtual bool supportsMediaSourceMIMEType( 89 virtual bool supportsMediaSourceMIMEType(
90 const WebKit::WebString&, 90 const blink::WebString&,
91 const WebKit::WebString&); 91 const blink::WebString&);
92 virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType( 92 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
93 const WebKit::WebString&); 93 const blink::WebString&);
94 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); 94 virtual blink::WebString mimeTypeForExtension(const blink::WebString&);
95 virtual WebKit::WebString wellKnownMimeTypeForExtension( 95 virtual blink::WebString wellKnownMimeTypeForExtension(
96 const WebKit::WebString&); 96 const blink::WebString&);
97 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); 97 virtual blink::WebString mimeTypeFromFile(const blink::WebString&);
98 virtual void queryStorageUsageAndQuota( 98 virtual void queryStorageUsageAndQuota(
99 const WebKit::WebURL& storage_partition, 99 const blink::WebURL& storage_partition,
100 WebKit::WebStorageQuotaType, 100 blink::WebStorageQuotaType,
101 WebKit::WebStorageQuotaCallbacks*) OVERRIDE; 101 blink::WebStorageQuotaCallbacks*) OVERRIDE;
102 102
103 private: 103 private:
104 104
105 class FileUtilities; 105 class FileUtilities;
106 scoped_ptr<FileUtilities> file_utilities_; 106 scoped_ptr<FileUtilities> file_utilities_;
107 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 107 scoped_ptr<blink::WebBlobRegistry> blob_registry_;
108 scoped_ptr<WebFileSystemImpl> web_file_system_; 108 scoped_ptr<WebFileSystemImpl> web_file_system_;
109 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 109 scoped_ptr<blink::WebIDBFactory> web_idb_factory_;
110 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 110 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
111 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; 111 scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
112 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 112 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
113 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 113 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
114 }; 114 };
115 115
116 } // namespace content 116 } // namespace content
117 117
118 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ 118 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/worker/worker_webapplicationcachehost_impl.cc ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698