pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/6acefc36ee2a0e9713345d3226963dd084e04d89

mer-b69241e157469407.css" /> http2: rename http2_state class to Http2State · nodejs/node@6acefc3 · GitHub
Skip to content

Commit 6acefc3

Browse files
danbevMylesBorins
authored andcommitted
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: #20423 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent e25f2c9 commit 6acefc3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/env-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ inline void Environment::set_http_parser_buffer_in_use(bool in_use) {
482482
http_parser_buffer_in_use_ = in_use;
483483
}
484484

485-
inline http2::http2_state* Environment::http2_state() const {
485+
inline http2::Http2State* Environment::http2_state() const {
486486
return http2_state_.get();
487487
}
488488

489489
inline void Environment::set_http2_state(
490-
std::unique_ptr<http2::http2_state> buffer) {
490+
std::unique_ptr<http2::Http2State> buffer) {
491491
CHECK(!http2_state_); // Should be set only once.
492492
http2_state_ = std::move(buffer);
493493
}

src/env.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ class Environment {
643643
inline bool http_parser_buffer_in_use() const;
644644
inline void set_http_parser_buffer_in_use(bool in_use);
645645

646-
inline http2::http2_state* http2_state() const;
647-
inline void set_http2_state(std::unique_ptr<http2::http2_state> state);
646+
inline http2::Http2State* http2_state() const;
647+
inline void set_http2_state(std::unique_ptr<http2::Http2State> state);
648648

649649
inline AliasedBuffer<double, v8::Float64Array>* fs_stats_field_array();
650650

@@ -831,7 +831,7 @@ class Environment {
831831

832832
char* http_parser_buffer_;
833833
bool http_parser_buffer_in_use_ = false;
834-
std::unique_ptr<http2::http2_state> http2_state_;
834+
std::unique_ptr<http2::Http2State> http2_state_;
835835

836836
AliasedBuffer<double, v8::Float64Array> fs_stats_field_array_;
837837

src/node_http2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ void Initialize(Local<Object> target,
26502650
Isolate* isolate = env->isolate();
26512651
HandleScope scope(isolate);
26522652

2653-
std::unique_ptr<http2_state> state(new http2_state(isolate));
2653+
std::unique_ptr<Http2State> state(new Http2State(isolate));
26542654

26552655
#define SET_STATE_TYPEDARRAY(name, field) \
26562656
target->Set(context, \

src/node_http2_state.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ namespace http2 {
8484
IDX_SESSION_STATS_COUNT
8585
};
8686

87-
class http2_state {
87+
class Http2State {
8888
public:
89-
explicit http2_state(v8::Isolate* isolate) :
89+
explicit Http2State(v8::Isolate* isolate) :
9090
root_buffer(
9191
isolate,
9292
sizeof(http2_state_internal)),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy