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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DataConsumerHandleUtil_h 5 #ifndef DataConsumerHandleUtil_h
6 #define DataConsumerHandleUtil_h 6 #define DataConsumerHandleUtil_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "modules/fetch/FetchDataConsumerHandle.h" 9 #include "modules/fetch/FetchDataConsumerHandle.h"
10 #include "public/platform/WebDataConsumerHandle.h" 10 #include "public/platform/WebDataConsumerHandle.h"
(...skipping 16 matching lines...) Expand all
27 MODULES_EXPORT PassOwnPtr<WebDataConsumerHandle> createUnexpectedErrorDataConsum erHandle(); 27 MODULES_EXPORT PassOwnPtr<WebDataConsumerHandle> createUnexpectedErrorDataConsum erHandle();
28 28
29 // Returns a FetchDataConsumerHandle that wraps WebDataConsumerHandle. 29 // Returns a FetchDataConsumerHandle that wraps WebDataConsumerHandle.
30 MODULES_EXPORT PassOwnPtr<FetchDataConsumerHandle> createFetchDataConsumerHandle FromWebHandle(PassOwnPtr<WebDataConsumerHandle>); 30 MODULES_EXPORT PassOwnPtr<FetchDataConsumerHandle> createFetchDataConsumerHandle FromWebHandle(PassOwnPtr<WebDataConsumerHandle>);
31 31
32 // A helper class to call Client::didGetReadable() asynchronously after 32 // A helper class to call Client::didGetReadable() asynchronously after
33 // Reader creation. 33 // Reader creation.
34 // NotifyOnReaderCreationHelper must be owned by a reader and 34 // NotifyOnReaderCreationHelper must be owned by a reader and
35 // |client| must be the client of the reader. 35 // |client| must be the client of the reader.
36 class NotifyOnReaderCreationHelper final { 36 class NotifyOnReaderCreationHelper final {
37 DISALLOW_ALLOCATION(); 37 DISALLOW_NEW();
38 public: 38 public:
39 NotifyOnReaderCreationHelper(WebDataConsumerHandle::Client* /* client */); 39 NotifyOnReaderCreationHelper(WebDataConsumerHandle::Client* /* client */);
40 40
41 private: 41 private:
42 void notify(WebDataConsumerHandle::Client*); 42 void notify(WebDataConsumerHandle::Client*);
43 43
44 WeakPtrFactory<NotifyOnReaderCreationHelper> m_factory; 44 WeakPtrFactory<NotifyOnReaderCreationHelper> m_factory;
45 }; 45 };
46 46
47 } // namespace blink 47 } // namespace blink
48 48
49 #endif // DataConsumerHandleUtil_h 49 #endif // DataConsumerHandleUtil_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698