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

Side by Side Diff: components/cast_channel/cast_framer.h

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: fix buildbot compile errors Created 3 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
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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_FRAMER_H_ 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_FRAMER_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_FRAMER_H_ 6 #define COMPONENTS_CAST_CHANNEL_CAST_FRAMER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/cast_channel/cast_channel_enum.h" 15 #include "components/cast_channel/cast_channel_enum.h"
16 #include "net/base/io_buffer.h" 16 #include "net/base/io_buffer.h"
17 17
18 namespace extensions {
19 namespace api {
20 namespace cast_channel { 18 namespace cast_channel {
21 class CastMessage; 19 class CastMessage;
22 20
23 // Class for constructing and parsing CastMessage packet data. 21 // Class for constructing and parsing CastMessage packet data.
24 class MessageFramer { 22 class MessageFramer {
25 public: 23 public:
26 using ChannelError = ::cast_channel::ChannelError; 24 using ChannelError = ::cast_channel::ChannelError;
27 25
28 // |input_buffer|: The input buffer used by all socket read operations that 26 // |input_buffer|: The input buffer used by all socket read operations that
29 // feed data into the framer. 27 // feed data into the framer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Input buffer which carries message data read from the socket. 91 // Input buffer which carries message data read from the socket.
94 // Caller is responsible for writing into this buffer. 92 // Caller is responsible for writing into this buffer.
95 scoped_refptr<net::GrowableIOBuffer> input_buffer_; 93 scoped_refptr<net::GrowableIOBuffer> input_buffer_;
96 94
97 // Disables Ingest functionality is the parser receives invalid data. 95 // Disables Ingest functionality is the parser receives invalid data.
98 bool error_; 96 bool error_;
99 97
100 DISALLOW_COPY_AND_ASSIGN(MessageFramer); 98 DISALLOW_COPY_AND_ASSIGN(MessageFramer);
101 }; 99 };
102 } // namespace cast_channel 100 } // namespace cast_channel
103 } // namespace api 101 #endif // COMPONENTS_CAST_CHANNEL_CAST_FRAMER_H_
104 } // namespace extensions
105 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_FRAMER_H_
OLDNEW
« no previous file with comments | « components/cast_channel/cast_auth_util_unittest.cc ('k') | components/cast_channel/cast_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698