http2: rename http2_state class to Http2State

This commit renames the http2_state class to follow the guidelines in
CPP_STYLE_GUIDE.md.

PR-URL: https://github.com/nodejs/node/pull/20423
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Daniel Bevenius authored and Myles Borins committed 2018-05-08 18:26:16 -07:00
1 parent e25f2c9e91
commit 6acefc36ee
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -482,12 +482,12 @@ inline void Environment::set_http_parser_buffer_in_use(bool in_use) {
http_parser_buffer_in_use_ = in_use;
}
inline http2::http2_state* Environment::http2_state() const {
inline http2::Http2State* Environment::http2_state() const {
return http2_state_.get();
}
inline void Environment::set_http2_state(
std::unique_ptr<http2::http2_state> buffer) {
std::unique_ptr<http2::Http2State> buffer) {
CHECK(!http2_state_); // Should be set only once.
http2_state_ = std::move(buffer);
}
+3 -3
View File
@@ -643,8 +643,8 @@ class Environment {
inline bool http_parser_buffer_in_use() const;
inline void set_http_parser_buffer_in_use(bool in_use);
inline http2::http2_state* http2_state() const;
inline void set_http2_state(std::unique_ptr<http2::http2_state> state);
inline http2::Http2State* http2_state() const;
inline void set_http2_state(std::unique_ptr<http2::Http2State> state);
inline AliasedBuffer<double, v8::Float64Array>* fs_stats_field_array();
@@ -831,7 +831,7 @@ class Environment {
char* http_parser_buffer_;
bool http_parser_buffer_in_use_ = false;
std::unique_ptr<http2::http2_state> http2_state_;
std::unique_ptr<http2::Http2State> http2_state_;
AliasedBuffer<double, v8::Float64Array> fs_stats_field_array_;
+1 -1
View File
@@ -2650,7 +2650,7 @@ void Initialize(Local<Object> target,
Isolate* isolate = env->isolate();
HandleScope scope(isolate);
std::unique_ptr<http2_state> state(new http2_state(isolate));
std::unique_ptr<Http2State> state(new Http2State(isolate));
#define SET_STATE_TYPEDARRAY(name, field) \
target->Set(context, \
+2 -2
View File
@@ -84,9 +84,9 @@ namespace http2 {
IDX_SESSION_STATS_COUNT
};
class http2_state {
class Http2State {
public:
explicit http2_state(v8::Isolate* isolate) :
explicit Http2State(v8::Isolate* isolate) :
root_buffer(
isolate,
sizeof(http2_state_internal)),