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

Side by Side Diff: Source/modules/fetch/CompositeDataConsumerHandle.h

Issue 1212123003: Componentization: make symbols visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 // 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 CompositeDataConsumerHandle_h 5 #ifndef CompositeDataConsumerHandle_h
6 #define CompositeDataConsumerHandle_h 6 #define CompositeDataConsumerHandle_h
7 7
8 #include "modules/ModulesExport.h"
8 #include "public/platform/WebDataConsumerHandle.h" 9 #include "public/platform/WebDataConsumerHandle.h"
9 #include "wtf/OwnPtr.h" 10 #include "wtf/OwnPtr.h"
10 #include "wtf/PassOwnPtr.h" 11 #include "wtf/PassOwnPtr.h"
11 #include "wtf/RefPtr.h" 12 #include "wtf/RefPtr.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 // This is a utility class to construct a composite data consumer handle. It 16 // This is a utility class to construct a composite data consumer handle. It
16 // owns a web data consumer handle and delegates methods. A user can update 17 // owns a web data consumer handle and delegates methods. A user can update
17 // the handle by using |update| method. 18 // the handle by using |update| method.
18 class CompositeDataConsumerHandle final : public WebDataConsumerHandle { 19 class MODULES_EXPORT CompositeDataConsumerHandle final : public WebDataConsumerH andle {
19 public: 20 public:
20 // |handle| must not be null and must not be locked. 21 // |handle| must not be null and must not be locked.
21 static PassOwnPtr<CompositeDataConsumerHandle> create(PassOwnPtr<WebDataCons umerHandle> handle) 22 static PassOwnPtr<CompositeDataConsumerHandle> create(PassOwnPtr<WebDataCons umerHandle> handle)
22 { 23 {
23 ASSERT(handle); 24 ASSERT(handle);
24 return adoptPtr(new CompositeDataConsumerHandle(handle)); 25 return adoptPtr(new CompositeDataConsumerHandle(handle));
25 } 26 }
26 ~CompositeDataConsumerHandle() override; 27 ~CompositeDataConsumerHandle() override;
27 28
28 // This function should be called on the thread on which this object 29 // This function should be called on the thread on which this object
29 // was created. |handle| must not be null and must not be locked. 30 // was created. |handle| must not be null and must not be locked.
30 void update(PassOwnPtr<WebDataConsumerHandle> /* handle */); 31 void update(PassOwnPtr<WebDataConsumerHandle> /* handle */);
31 32
32 private: 33 private:
33 class Context; 34 class Context;
34 class ReaderImpl; 35 class ReaderImpl;
35 Reader* obtainReaderInternal(Client*) override; 36 Reader* obtainReaderInternal(Client*) override;
36 37
37 const char* debugName() const override { return "CompositeDataConsumerHandle "; } 38 const char* debugName() const override { return "CompositeDataConsumerHandle "; }
38 39
39 explicit CompositeDataConsumerHandle(PassOwnPtr<WebDataConsumerHandle>); 40 explicit CompositeDataConsumerHandle(PassOwnPtr<WebDataConsumerHandle>);
40 41
41 RefPtr<Context> m_context; 42 RefPtr<Context> m_context;
42 }; 43 };
43 44
44 } // namespace blink 45 } // namespace blink
45 46
46 #endif // CompositeDataConsumerHandle_h 47 #endif // CompositeDataConsumerHandle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698