Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 395ce84

Browse filesBrowse files
danbevBethGriggs
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. Backport-PR-URL: #22850 PR-URL: #20423 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 74192dd commit 395ce84
Copy full SHA for 395ce84

File tree

Expand file treeCollapse file tree

4 files changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+8
-8
lines changed
Open diff view settings
Collapse file

‎src/env-inl.h‎

Copy file name to clipboardExpand all lines: src/env-inl.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@ inline void Environment::set_http_parser_buffer(char* buffer) {
417417
http_parser_buffer_ = buffer;
418418
}
419419

420-
inline http2::http2_state* Environment::http2_state() const {
420+
inline http2::Http2State* Environment::http2_state() const {
421421
return http2_state_.get();
422422
}
423423

424424
inline void Environment::set_http2_state(
425-
std::unique_ptr<http2::http2_state> buffer) {
425+
std::unique_ptr<http2::Http2State> buffer) {
426426
CHECK(!http2_state_); // Should be set only once.
427427
http2_state_ = std::move(buffer);
428428
}
Collapse file

‎src/env.h‎

Copy file name to clipboardExpand all lines: src/env.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ class Environment {
617617
inline char* http_parser_buffer() const;
618618
inline void set_http_parser_buffer(char* buffer);
619619

620-
inline http2::http2_state* http2_state() const;
621-
inline void set_http2_state(std::unique_ptr<http2::http2_state> state);
620+
inline http2::Http2State* http2_state() const;
621+
inline void set_http2_state(std::unique_ptr<http2::Http2State> state);
622622

623623
inline double* fs_stats_field_array() const;
624624
inline void set_fs_stats_field_array(double* fields);
@@ -759,7 +759,7 @@ class Environment {
759759
double* heap_space_statistics_buffer_ = nullptr;
760760

761761
char* http_parser_buffer_;
762-
std::unique_ptr<http2::http2_state> http2_state_;
762+
std::unique_ptr<http2::Http2State> http2_state_;
763763

764764
double* fs_stats_field_array_;
765765

Collapse file

‎src/node_http2.cc‎

Copy file name to clipboardExpand all lines: src/node_http2.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ void Initialize(Local<Object> target,
28682868
Isolate* isolate = env->isolate();
28692869
HandleScope scope(isolate);
28702870

2871-
std::unique_ptr<http2_state> state(new http2_state(isolate));
2871+
std::unique_ptr<Http2State> state(new Http2State(isolate));
28722872

28732873
#define SET_STATE_TYPEDARRAY(name, field) \
28742874
target->Set(context, \
Collapse file

‎src/node_http2_state.h‎

Copy file name to clipboardExpand all lines: src/node_http2_state.h
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.