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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 private: 77 private:
78 SyncCallbackHelper() : m_errorCode(FileError::kOK), m_completed(false) {} 78 SyncCallbackHelper() : m_errorCode(FileError::kOK), m_completed(false) {}
79 79
80 class SuccessCallbackImpl final : public SuccessCallback { 80 class SuccessCallbackImpl final : public SuccessCallback {
81 public: 81 public:
82 static SuccessCallbackImpl* create(HelperType* helper) { 82 static SuccessCallbackImpl* create(HelperType* helper) {
83 return new SuccessCallbackImpl(helper); 83 return new SuccessCallbackImpl(helper);
84 } 84 }
85 85
86 /* DO NOT SUBMIT - merge conflict marker.
87 * Please spell |handleEvent| below, not |HandleEvent|. */
86 virtual void handleEvent() { m_helper->setError(FileError::kOK); } 88 virtual void handleEvent() { m_helper->setError(FileError::kOK); }
87 89
90 /* DO NOT SUBMIT - merge conflict marker.
91 * Please spell |handleEvent| below, not |HandleEvent|. */
88 virtual void handleEvent(CallbackArg arg) { m_helper->setResult(arg); } 92 virtual void handleEvent(CallbackArg arg) { m_helper->setResult(arg); }
89 93
90 DEFINE_INLINE_TRACE() { 94 DEFINE_INLINE_TRACE() {
91 visitor->trace(m_helper); 95 visitor->trace(m_helper);
92 SuccessCallback::trace(visitor); 96 SuccessCallback::trace(visitor);
93 } 97 }
94 98
95 private: 99 private:
96 explicit SuccessCallbackImpl(HelperType* helper) : m_helper(helper) {} 100 explicit SuccessCallbackImpl(HelperType* helper) : m_helper(helper) {}
97 Member<HelperType> m_helper; 101 Member<HelperType> m_helper;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType> 149 typedef SyncCallbackHelper<VoidCallback, EmptyType*, EmptyType>
146 VoidSyncCallbackHelper; 150 VoidSyncCallbackHelper;
147 typedef SyncCallbackHelper<FileSystemCallback, 151 typedef SyncCallbackHelper<FileSystemCallback,
148 DOMFileSystem*, 152 DOMFileSystem*,
149 DOMFileSystemSync> 153 DOMFileSystemSync>
150 FileSystemSyncCallbackHelper; 154 FileSystemSyncCallbackHelper;
151 155
152 } // namespace blink 156 } // namespace blink
153 157
154 #endif // SyncCallbackHelper_h 158 #endif // SyncCallbackHelper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698