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

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

Issue 319373002: Revert of Revert of Oilpan: Prepare to make ExecutionContext GarbageCollectedMixin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/workers/WorkerMessagingProxy.h ('k') | Source/modules/filesystem/LocalFileSystem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool shouldScheduleCallback() const; 67 bool shouldScheduleCallback() const;
68 68
69 template <typename CB, typename CBArg> 69 template <typename CB, typename CBArg>
70 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB Arg>); 70 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB Arg>);
71 71
72 template <typename CB> 72 template <typename CB>
73 void handleEventOrScheduleCallback(PassOwnPtr<CB>); 73 void handleEventOrScheduleCallback(PassOwnPtr<CB>);
74 74
75 OwnPtr<ErrorCallback> m_errorCallback; 75 OwnPtr<ErrorCallback> m_errorCallback;
76 RefPtrWillBePersistent<DOMFileSystemBase> m_fileSystem; 76 RefPtrWillBePersistent<DOMFileSystemBase> m_fileSystem;
77 RefPtr<ExecutionContext> m_executionContext; 77 RefPtrWillBePersistent<ExecutionContext> m_executionContext;
78 }; 78 };
79 79
80 // Subclasses ---------------------------------------------------------------- 80 // Subclasses ----------------------------------------------------------------
81 81
82 class EntryCallbacks FINAL : public FileSystemCallbacksBase { 82 class EntryCallbacks FINAL : public FileSystemCallbacksBase {
83 public: 83 public:
84 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback> , PassOwnPtr<ErrorCallback>, ExecutionContext*, PassRefPtrWillBeRawPtr<DOMFileSy stemBase>, const String& expectedPath, bool isDirectory); 84 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback> , PassOwnPtr<ErrorCallback>, ExecutionContext*, PassRefPtrWillBeRawPtr<DOMFileSy stemBase>, const String& expectedPath, bool isDirectory);
85 virtual void didSucceed() OVERRIDE; 85 virtual void didSucceed() OVERRIDE;
86 86
87 private: 87 private:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual void didSucceed() OVERRIDE; 153 virtual void didSucceed() OVERRIDE;
154 154
155 private: 155 private:
156 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution Context*, PassRefPtrWillBeRawPtr<DOMFileSystemBase>); 156 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution Context*, PassRefPtrWillBeRawPtr<DOMFileSystemBase>);
157 OwnPtr<VoidCallback> m_successCallback; 157 OwnPtr<VoidCallback> m_successCallback;
158 }; 158 };
159 159
160 } // namespace 160 } // namespace
161 161
162 #endif // FileSystemCallbacks_h 162 #endif // FileSystemCallbacks_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerMessagingProxy.h ('k') | Source/modules/filesystem/LocalFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698