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

Side by Side Diff: content/child/web_data_consumer_handle_impl.h

Issue 2426483002: Add DISALLOW_COPY_AND_ASSIGN in web_data_consumer_handle_impl.h. (Closed)
Patch Set: add blank lines Created 4 years, 2 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 | « no previous file | 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_
6 #define CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ 6 #define CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 Result endRead(size_t readSize) override; 36 Result endRead(size_t readSize) override;
37 37
38 private: 38 private:
39 Result HandleReadResult(MojoResult); 39 Result HandleReadResult(MojoResult);
40 void StartWatching(); 40 void StartWatching();
41 void OnHandleGotReadable(MojoResult); 41 void OnHandleGotReadable(MojoResult);
42 42
43 scoped_refptr<Context> context_; 43 scoped_refptr<Context> context_;
44 mojo::Watcher handle_watcher_; 44 mojo::Watcher handle_watcher_;
45 Client* client_; 45 Client* client_;
46
47 DISALLOW_COPY_AND_ASSIGN(ReaderImpl);
46 }; 48 };
47 std::unique_ptr<Reader> obtainReader(Client* client) override; 49 std::unique_ptr<Reader> obtainReader(Client* client) override;
48 50
49 explicit WebDataConsumerHandleImpl(Handle handle); 51 explicit WebDataConsumerHandleImpl(Handle handle);
50 ~WebDataConsumerHandleImpl() override; 52 ~WebDataConsumerHandleImpl() override;
51 53
52 private: 54 private:
53 const char* debugName() const override; 55 const char* debugName() const override;
54 56
55 scoped_refptr<Context> context_; 57 scoped_refptr<Context> context_;
58
59 DISALLOW_COPY_AND_ASSIGN(WebDataConsumerHandleImpl);
56 }; 60 };
57 61
58 } // namespace content 62 } // namespace content
59 63
60 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ 64 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698