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

Side by Side Diff: runtime/bin/dbg_connection_win.h

Issue 1497033003: - Remove the legacy debug protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef BIN_DBG_CONNECTION_WIN_H_
6 #define BIN_DBG_CONNECTION_WIN_H_
7
8 #include "bin/lockers.h"
9 #include "bin/thread.h"
10
11 namespace dart {
12 namespace bin {
13
14 class DebuggerConnectionImpl {
15 public:
16 static void StartHandler(int port_number);
17 static void StopHandler(intptr_t debug_fd);
18 static intptr_t Send(intptr_t socket, const char* buf, int len);
19 static intptr_t Receive(intptr_t socket, char* buf, int len);
20
21 private:
22 static void ThreadEntry(uword args);
23 static void NotifyThreadStarted();
24 static void WaitForThreadStarted();
25 static void NotifyThreadFinished();
26 static void WaitForThreadFinished();
27
28 static Monitor* handler_monitor_;
29 static ThreadId handler_thread_id_;
30 static bool handler_thread_running_;
31 };
32
33 } // namespace bin
34 } // namespace dart
35
36 #endif // BIN_DBG_CONNECTION_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698