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

Side by Side Diff: Source/platform/AsyncFileSystemCallbacks.h

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/modules/filesystem/WorkerGlobalScopeFileSystem.h ('k') | no next file » | 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef AsyncFileSystemCallbacks_h 31 #ifndef AsyncFileSystemCallbacks_h
32 #define AsyncFileSystemCallbacks_h 32 #define AsyncFileSystemCallbacks_h
33 33
34 #include "platform/FileMetadata.h" 34 #include "platform/FileMetadata.h"
35 #include "platform/FileSystemType.h" 35 #include "platform/FileSystemType.h"
36 #include "platform/blob/BlobData.h" 36 #include "platform/blob/BlobData.h"
37 #include "public/platform/WebFileWriter.h" 37 #include "public/platform/WebFileWriter.h"
38 #include "wtf/Assertions.h" 38 #include "wtf/Assertions.h"
39 #include "wtf/FastAllocBase.h"
39 #include "wtf/Noncopyable.h" 40 #include "wtf/Noncopyable.h"
40 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
41 42
42 namespace blink { 43 namespace blink {
43 44
44 class PLATFORM_EXPORT AsyncFileSystemCallbacks { 45 class PLATFORM_EXPORT AsyncFileSystemCallbacks {
46 WTF_MAKE_FAST_ALLOCATED(AsyncFileSystemCallbacks);
45 WTF_MAKE_NONCOPYABLE(AsyncFileSystemCallbacks); 47 WTF_MAKE_NONCOPYABLE(AsyncFileSystemCallbacks);
46 public: 48 public:
47 AsyncFileSystemCallbacks() : m_blockUntilCompletion(false) { } 49 AsyncFileSystemCallbacks() : m_blockUntilCompletion(false) { }
48 50
49 // Called when a requested operation is completed successfully. 51 // Called when a requested operation is completed successfully.
50 virtual void didSucceed() { ASSERT_NOT_REACHED(); } 52 virtual void didSucceed() { ASSERT_NOT_REACHED(); }
51 53
52 // Called when a requested file system is opened. 54 // Called when a requested file system is opened.
53 virtual void didOpenFileSystem(const String& name, const KURL& rootURL) { AS SERT_NOT_REACHED(); } 55 virtual void didOpenFileSystem(const String& name, const KURL& rootURL) { AS SERT_NOT_REACHED(); }
54 56
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 89
88 virtual ~AsyncFileSystemCallbacks() { } 90 virtual ~AsyncFileSystemCallbacks() { }
89 91
90 private: 92 private:
91 bool m_blockUntilCompletion; 93 bool m_blockUntilCompletion;
92 }; 94 };
93 95
94 } // namespace blink 96 } // namespace blink
95 97
96 #endif // AsyncFileSystemCallbacks_h 98 #endif // AsyncFileSystemCallbacks_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/WorkerGlobalScopeFileSystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698