| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 class CallbackWrapper final : public GarbageCollectedFinalized<CallbackWrapper>
{ | 57 class CallbackWrapper final : public GarbageCollectedFinalized<CallbackWrapper>
{ |
| 58 public: | 58 public: |
| 59 CallbackWrapper(PassOwnPtr<AsyncFileSystemCallbacks> c) | 59 CallbackWrapper(PassOwnPtr<AsyncFileSystemCallbacks> c) |
| 60 : m_callbacks(std::move(c)) | 60 : m_callbacks(std::move(c)) |
| 61 { | 61 { |
| 62 } | 62 } |
| 63 virtual ~CallbackWrapper() { } | 63 virtual ~CallbackWrapper() { } |
| 64 PassOwnPtr<AsyncFileSystemCallbacks> release() | 64 PassOwnPtr<AsyncFileSystemCallbacks> release() |
| 65 { | 65 { |
| 66 return m_callbacks.release(); | 66 return std::move(m_callbacks); |
| 67 } | 67 } |
| 68 | 68 |
| 69 DEFINE_INLINE_TRACE() { } | 69 DEFINE_INLINE_TRACE() { } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 OwnPtr<AsyncFileSystemCallbacks> m_callbacks; | 72 OwnPtr<AsyncFileSystemCallbacks> m_callbacks; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 LocalFileSystem* LocalFileSystem::create(PassOwnPtr<FileSystemClient> client) | 75 LocalFileSystem* LocalFileSystem::create(PassOwnPtr<FileSystemClient> client) |
| 76 { | 76 { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 { | 213 { |
| 214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(std::move(client))); | 214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(std::move(client))); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) | 217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) |
| 218 { | 218 { |
| 219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(std::move(client))); | 219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(std::move(client))); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace blink | 222 } // namespace blink |
| OLD | NEW |