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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 typedef typename ResultTypeTrait::ReturnType ResultReturnType; 87 typedef typename ResultTypeTrait::ReturnType ResultReturnType;
88 88
89 SyncCallbackHelper() 89 SyncCallbackHelper()
90 : m_successCallback(SuccessCallbackImpl::create(this)) 90 : m_successCallback(SuccessCallbackImpl::create(this))
91 , m_errorCallback(ErrorCallbackImpl::create(this)) 91 , m_errorCallback(ErrorCallbackImpl::create(this))
92 , m_errorCode(FileError::OK) 92 , m_errorCode(FileError::OK)
93 , m_completed(false) 93 , m_completed(false)
94 { 94 {
95 } 95 }
96 96
97 ResultReturnType getResult(ExceptionState& es) 97 ResultReturnType getResult(ExceptionState& exceptionState)
98 { 98 {
99 if (m_errorCode) 99 if (m_errorCode)
100 FileError::throwDOMException(es, m_errorCode); 100 FileError::throwDOMException(exceptionState, m_errorCode);
101 101
102 return m_result; 102 return m_result;
103 } 103 }
104 104
105 PassRefPtr<SuccessCallback> successCallback() { return m_successCallback; } 105 PassRefPtr<SuccessCallback> successCallback() { return m_successCallback; }
106 PassRefPtr<ErrorCallback> errorCallback() { return m_errorCallback; } 106 PassRefPtr<ErrorCallback> errorCallback() { return m_errorCallback; }
107 107
108 private: 108 private:
109 class SuccessCallbackImpl : public SuccessCallback { 109 class SuccessCallbackImpl : public SuccessCallback {
110 public: 110 public:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper; 187 typedef SyncCallbackHelper<EntryCallback, Entry*, EntrySync> EntrySyncCallbackHe lper;
188 typedef SyncCallbackHelper<EntriesCallback, const EntryVector&, EntrySyncVector> EntriesSyncCallbackHelper; 188 typedef SyncCallbackHelper<EntriesCallback, const EntryVector&, EntrySyncVector> EntriesSyncCallbackHelper;
189 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper; 189 typedef SyncCallbackHelper<MetadataCallback, Metadata*, Metadata> MetadataSyncCa llbackHelper;
190 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper; 190 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> VoidSyncCallback Helper;
191 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper; 191 typedef SyncCallbackHelper<FileSystemCallback, DOMFileSystem*, DOMFileSystemSync > FileSystemSyncCallbackHelper;
192 192
193 } // namespace WebCore 193 } // namespace WebCore
194 194
195 #endif // SyncCallbackHelper_h 195 #endif // SyncCallbackHelper_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698