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

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

Issue 12330162: Use ThreadSafeSender in a couple of places. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 months 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
« no previous file with comments | « content/worker/worker_thread.cc ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/webkitplatformsupport_impl.h" 9 #include "content/common/webkitplatformsupport_impl.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebMimeRegistry.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebMimeRegistry.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
12 12
13 namespace WebKit { 13 namespace WebKit {
14 class WebFileUtilities; 14 class WebFileUtilities;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 class ThreadSafeSender;
18 class WebFileSystemImpl; 19 class WebFileSystemImpl;
19 20
20 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, 21 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl,
21 public WebKit::WebMimeRegistry { 22 public WebKit::WebMimeRegistry {
22 public: 23 public:
23 WorkerWebKitPlatformSupportImpl(); 24 explicit WorkerWebKitPlatformSupportImpl(ThreadSafeSender* sender);
24 virtual ~WorkerWebKitPlatformSupportImpl(); 25 virtual ~WorkerWebKitPlatformSupportImpl();
25 26
26 // WebKitPlatformSupport methods: 27 // WebKitPlatformSupport methods:
27 virtual WebKit::WebClipboard* clipboard(); 28 virtual WebKit::WebClipboard* clipboard();
28 virtual WebKit::WebMimeRegistry* mimeRegistry(); 29 virtual WebKit::WebMimeRegistry* mimeRegistry();
29 virtual WebKit::WebFileSystem* fileSystem(); 30 virtual WebKit::WebFileSystem* fileSystem();
30 virtual WebKit::WebFileUtilities* fileUtilities(); 31 virtual WebKit::WebFileUtilities* fileUtilities();
31 virtual WebKit::WebSandboxSupport* sandboxSupport(); 32 virtual WebKit::WebSandboxSupport* sandboxSupport();
32 virtual bool sandboxEnabled(); 33 virtual bool sandboxEnabled();
33 virtual unsigned long long visitedLinkHash(const char* canonicalURL, 34 virtual unsigned long long visitedLinkHash(const char* canonicalURL,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual WebKit::WebString wellKnownMimeTypeForExtension( 85 virtual WebKit::WebString wellKnownMimeTypeForExtension(
85 const WebKit::WebString&); 86 const WebKit::WebString&);
86 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); 87 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&);
87 virtual WebKit::WebString preferredExtensionForMIMEType( 88 virtual WebKit::WebString preferredExtensionForMIMEType(
88 const WebKit::WebString&); 89 const WebKit::WebString&);
89 90
90 private: 91 private:
91 92
92 class FileUtilities; 93 class FileUtilities;
93 scoped_ptr<FileUtilities> file_utilities_; 94 scoped_ptr<FileUtilities> file_utilities_;
94
95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
96
97 scoped_ptr<WebFileSystemImpl> web_file_system_; 96 scoped_ptr<WebFileSystemImpl> web_file_system_;
98 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 97 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
98 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
99 }; 99 };
100 100
101 } // namespace content 101 } // namespace content
102 102
103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ 103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/worker/worker_thread.cc ('k') | content/worker/worker_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698