Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "webkit/glue/webkitplatformsupport_impl.h" | 13 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 14 | 14 |
| 15 class RendererClipboardClient; | |
| 15 class WebSharedWorkerRepositoryImpl; | 16 class WebSharedWorkerRepositoryImpl; |
| 16 class WebFileSystemImpl; | 17 class WebFileSystemImpl; |
| 17 | 18 |
| 18 namespace IPC { | 19 namespace IPC { |
| 19 class SyncMessage; | 20 class SyncMessage; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace webkit_glue { | 23 namespace webkit_glue { |
| 23 class WebClipboardImpl; | 24 class WebClipboardImpl; |
| 24 } | 25 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 virtual WebKit::WebBlobRegistry* blobRegistry(); | 89 virtual WebKit::WebBlobRegistry* blobRegistry(); |
| 89 | 90 |
| 90 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 91 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 bool CheckPreparsedJsCachingEnabled() const; | 94 bool CheckPreparsedJsCachingEnabled() const; |
| 94 | 95 |
| 95 // Helper function to send synchronous message from any thread. | 96 // Helper function to send synchronous message from any thread. |
| 96 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg); | 97 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg); |
| 97 | 98 |
| 99 scoped_ptr<RendererClipboardClient> clipboard_client_; | |
|
tony
2011/11/21 22:42:54
Should we just stack allocate this?
piman
2011/11/22 00:27:20
I'm not sure I understand what you're suggesting h
tony
2011/11/22 00:46:23
Could this be RendererClipboardClient clipboard_cl
| |
| 98 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; | 100 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; |
| 99 | 101 |
| 100 class FileUtilities; | 102 class FileUtilities; |
| 101 scoped_ptr<FileUtilities> file_utilities_; | 103 scoped_ptr<FileUtilities> file_utilities_; |
| 102 | 104 |
| 103 class MimeRegistry; | 105 class MimeRegistry; |
| 104 scoped_ptr<MimeRegistry> mime_registry_; | 106 scoped_ptr<MimeRegistry> mime_registry_; |
| 105 | 107 |
| 106 class SandboxSupport; | 108 class SandboxSupport; |
| 107 scoped_ptr<SandboxSupport> sandbox_support_; | 109 scoped_ptr<SandboxSupport> sandbox_support_; |
| 108 | 110 |
| 109 // This counter keeps track of the number of times sudden termination is | 111 // This counter keeps track of the number of times sudden termination is |
| 110 // enabled or disabled. It starts at 0 (enabled) and for every disable | 112 // enabled or disabled. It starts at 0 (enabled) and for every disable |
| 111 // increments by 1, for every enable decrements by 1. When it reaches 0, | 113 // increments by 1, for every enable decrements by 1. When it reaches 0, |
| 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 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 119 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
| 118 | 120 |
| 119 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 121 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 120 | 122 |
| 121 scoped_ptr<WebFileSystemImpl> web_file_system_; | 123 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 122 | 124 |
| 123 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 125 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 128 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |