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" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); | 80 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); |
81 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D(); | 81 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D(); |
82 virtual double audioHardwareSampleRate(); | 82 virtual double audioHardwareSampleRate(); |
83 virtual size_t audioHardwareBufferSize(); | 83 virtual size_t audioHardwareBufferSize(); |
84 virtual WebKit::WebAudioDevice* createAudioDevice( | 84 virtual WebKit::WebAudioDevice* createAudioDevice( |
85 size_t buffer_size, unsigned channels, double sample_rate, | 85 size_t buffer_size, unsigned channels, double sample_rate, |
86 WebKit::WebAudioDevice::RenderCallback* callback); | 86 WebKit::WebAudioDevice::RenderCallback* callback); |
87 | 87 |
88 virtual WebKit::WebBlobRegistry* blobRegistry(); | 88 virtual WebKit::WebBlobRegistry* blobRegistry(); |
89 | 89 |
| 90 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
| 91 |
90 private: | 92 private: |
91 bool CheckPreparsedJsCachingEnabled() const; | 93 bool CheckPreparsedJsCachingEnabled() const; |
92 | 94 |
93 // Helper function to send synchronous message from any thread. | 95 // Helper function to send synchronous message from any thread. |
94 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg); | 96 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg); |
95 | 97 |
96 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; | 98 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; |
97 | 99 |
98 class FileUtilities; | 100 class FileUtilities; |
99 scoped_ptr<FileUtilities> file_utilities_; | 101 scoped_ptr<FileUtilities> file_utilities_; |
(...skipping 15 matching lines...) Expand all Loading... |
115 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 117 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
116 | 118 |
117 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 119 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
118 | 120 |
119 scoped_ptr<WebFileSystemImpl> web_file_system_; | 121 scoped_ptr<WebFileSystemImpl> web_file_system_; |
120 | 122 |
121 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 123 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
122 }; | 124 }; |
123 | 125 |
124 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 126 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |