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

Unified Diff: net/tools/flip_server/acceptor_thread.h

Issue 93793004: Format and Refactor Flip Server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/tools/flip_server/acceptor_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/acceptor_thread.h
diff --git a/net/tools/flip_server/acceptor_thread.h b/net/tools/flip_server/acceptor_thread.h
index 7c758d970fe562f2685f156f98a1315e7e776e06..bcaa43e3a11cb274260d137469702cb50746424c 100644
--- a/net/tools/flip_server/acceptor_thread.h
+++ b/net/tools/flip_server/acceptor_thread.h
@@ -28,25 +28,25 @@ struct SSLState;
// a bool cross threads - especially one which only is set once...
class Notification {
public:
- explicit Notification(bool value) : value_(value) {}
-
- void Notify() {
- base::AutoLock al(lock_);
- value_ = true;
- }
- bool HasBeenNotified() {
- base::AutoLock al(lock_);
- return value_;
- }
- bool value_;
- base::Lock lock_;
+ explicit Notification(bool value) : value_(value) {}
+
+ void Notify() {
+ base::AutoLock al(lock_);
+ value_ = true;
+ }
+ bool HasBeenNotified() {
+ base::AutoLock al(lock_);
+ return value_;
+ }
+ bool value_;
+ base::Lock lock_;
};
class SMAcceptorThread : public base::SimpleThread,
public EpollCallbackInterface,
public SMConnectionPoolInterface {
public:
- SMAcceptorThread(FlipAcceptor *acceptor, MemoryCache* memory_cache);
+ SMAcceptorThread(FlipAcceptor* acceptor, MemoryCache* memory_cache);
virtual ~SMAcceptorThread();
// EpollCallbackInteface interface
@@ -65,7 +65,7 @@ class SMAcceptorThread : public base::SimpleThread,
SMConnection* NewConnection();
SMConnection* FindOrMakeNewSMConnection();
void InitWorker();
- void HandleConnection(int server_fd, struct sockaddr_in *remote_addr);
+ void HandleConnection(int server_fd, struct sockaddr_in* remote_addr);
void AcceptFromListenFD();
// Notify the Accept thread that it is time to terminate.
« no previous file with comments | « no previous file | net/tools/flip_server/acceptor_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698