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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/SyncCallbackHelper.h

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 ResultReturnType getResult(ExceptionState& exceptionState) 77 ResultReturnType getResult(ExceptionState& exceptionState)
78 { 78 {
79 if (m_errorCode) 79 if (m_errorCode)
80 FileError::throwDOMException(exceptionState, m_errorCode); 80 FileError::throwDOMException(exceptionState, m_errorCode);
81 81
82 return m_result; 82 return m_result;
83 } 83 }
84 84
85 SuccessCallback* successCallback() { return SuccessCallbackImpl::create(this ); } 85 SuccessCallback* getSuccessCallback() { return SuccessCallbackImpl::create(t his); }
86 ErrorCallback* errorCallback() { return ErrorCallbackImpl::create(this); } 86 ErrorCallback* getErrorCallback() { return ErrorCallbackImpl::create(this); }
87 87
88 DEFINE_INLINE_TRACE() 88 DEFINE_INLINE_TRACE()
89 { 89 {
90 visitor->trace(m_result); 90 visitor->trace(m_result);
91 } 91 }
92 92
93 private: 93 private:
94 SyncCallbackHelper() 94 SyncCallbackHelper()
95 : m_errorCode(FileError::OK) 95 : m_errorCode(FileError::OK)
96 , m_completed(false) 96 , m_completed(false)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 }; 170 };
171 171
172 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper; 172 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper;
173 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper; 173 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper;
174 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper; 174 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper;
175 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper; 175 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper;
176 176
177 } // namespace blink 177 } // namespace blink
178 178
179 #endif // SyncCallbackHelper_h 179 #endif // SyncCallbackHelper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698