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

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

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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/test/webrtc_audio_device_test.cc ('k') | no next file » | 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 #include "content/worker/worker_webkitplatformsupport_impl.h" 5 #include "content/worker/worker_webkitplatformsupport_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/database_util.h" 10 #include "content/common/database_util.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 WebClipboard* WorkerWebKitPlatformSupportImpl::clipboard() { 82 WebClipboard* WorkerWebKitPlatformSupportImpl::clipboard() {
83 NOTREACHED(); 83 NOTREACHED();
84 return NULL; 84 return NULL;
85 } 85 }
86 86
87 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { 87 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() {
88 return this; 88 return this;
89 } 89 }
90 90
91 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { 91 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() {
92 if (!web_file_system_.get()) 92 if (!web_file_system_)
93 web_file_system_.reset(new WebFileSystemImpl()); 93 web_file_system_.reset(new WebFileSystemImpl());
94 return web_file_system_.get(); 94 return web_file_system_.get();
95 } 95 }
96 96
97 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { 97 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() {
98 if (!file_utilities_.get()) { 98 if (!file_utilities_) {
99 file_utilities_.reset(new FileUtilities(thread_safe_sender_)); 99 file_utilities_.reset(new FileUtilities(thread_safe_sender_));
100 file_utilities_->set_sandbox_enabled(sandboxEnabled()); 100 file_utilities_->set_sandbox_enabled(sandboxEnabled());
101 } 101 }
102 return file_utilities_.get(); 102 return file_utilities_.get();
103 } 103 }
104 104
105 WebSandboxSupport* WorkerWebKitPlatformSupportImpl::sandboxSupport() { 105 WebSandboxSupport* WorkerWebKitPlatformSupportImpl::sandboxSupport() {
106 NOTREACHED(); 106 NOTREACHED();
107 return NULL; 107 return NULL;
108 } 108 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 const WebString& vfs_file_name) { 188 const WebString& vfs_file_name) {
189 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name); 189 return DatabaseUtil::DatabaseGetFileSize(vfs_file_name);
190 } 190 }
191 191
192 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( 192 long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin(
193 const WebString& origin_identifier) { 193 const WebString& origin_identifier) {
194 return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier); 194 return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier);
195 } 195 }
196 196
197 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() { 197 WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() {
198 if (!web_idb_factory_.get()) 198 if (!web_idb_factory_)
199 web_idb_factory_.reset(new RendererWebIDBFactoryImpl()); 199 web_idb_factory_.reset(new RendererWebIDBFactoryImpl());
200 return web_idb_factory_.get(); 200 return web_idb_factory_.get();
201 } 201 }
202 202
203 WebMimeRegistry::SupportsType 203 WebMimeRegistry::SupportsType
204 WorkerWebKitPlatformSupportImpl::supportsMIMEType( 204 WorkerWebKitPlatformSupportImpl::supportsMIMEType(
205 const WebString&) { 205 const WebString&) {
206 return WebMimeRegistry::IsSupported; 206 return WebMimeRegistry::IsSupported;
207 } 207 }
208 208
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 WebString WorkerWebKitPlatformSupportImpl::preferredExtensionForMIMEType( 275 WebString WorkerWebKitPlatformSupportImpl::preferredExtensionForMIMEType(
276 const WebString& mime_type) { 276 const WebString& mime_type) {
277 base::FilePath::StringType file_extension; 277 base::FilePath::StringType file_extension;
278 thread_safe_sender_->Send( 278 thread_safe_sender_->Send(
279 new MimeRegistryMsg_GetPreferredExtensionForMimeType( 279 new MimeRegistryMsg_GetPreferredExtensionForMimeType(
280 UTF16ToASCII(mime_type), &file_extension)); 280 UTF16ToASCII(mime_type), &file_extension));
281 return webkit_base::FilePathStringToWebString(file_extension); 281 return webkit_base::FilePathStringToWebString(file_extension);
282 } 282 }
283 283
284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { 284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() {
285 if (!blob_registry_.get() && thread_safe_sender_.get()) 285 if (!blob_registry_.get() && thread_safe_sender_)
286 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_)); 286 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_));
287 return blob_registry_.get(); 287 return blob_registry_.get();
288 } 288 }
289 289
290 } // namespace content 290 } // namespace content
OLDNEW
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698