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

Side by Side Diff: runtime/bin/vmservice_dartium.cc

Issue 2438613002: Provide an API to dart:developer to control the web server hosting the Service Protocol (Closed)
Patch Set: CHANGELOG.md merge and fatal error Created 4 years, 1 month 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
« no previous file with comments | « runtime/bin/vmservice_dartium.h ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/vmservice_dartium.h" 5 #include "bin/vmservice_dartium.h"
6 6
7 #include "bin/builtin.h" 7 #include "bin/builtin.h"
8 #include "bin/dartutils.h" 8 #include "bin/dartutils.h"
9 #include "bin/eventhandler.h" 9 #include "bin/eventhandler.h"
10 #include "bin/platform.h" 10 #include "bin/platform.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 fprintf(stderr, 70 fprintf(stderr,
71 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); 71 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage());
72 isolate = NULL; 72 isolate = NULL;
73 } 73 }
74 Dart_ExitScope(); 74 Dart_ExitScope();
75 Dart_ExitIsolate(); 75 Dart_ExitIsolate();
76 return isolate; 76 return isolate;
77 } 77 }
78 78
79 79
80 const char* VmServiceServer::GetServerIP() { 80 const char* VmServiceServer::GetServerAddress() {
81 return VmService::GetServerIP(); 81 return VmService::GetServerAddress();
82 } 82 }
83 83
84 84
85 intptr_t VmServiceServer::GetServerPort() {
86 return VmService::GetServerPort();
87 }
88
89
90 void VmServiceServer::DecompressAssets(const uint8_t* input, 85 void VmServiceServer::DecompressAssets(const uint8_t* input,
91 unsigned int input_len, 86 unsigned int input_len,
92 uint8_t** output, 87 uint8_t** output,
93 unsigned int* output_length) { 88 unsigned int* output_length) {
94 ASSERT(input != NULL); 89 ASSERT(input != NULL);
95 ASSERT(input_len > 0); 90 ASSERT(input_len > 0);
96 ASSERT(output != NULL); 91 ASSERT(output != NULL);
97 ASSERT(output_length != NULL); 92 ASSERT(output_length != NULL);
98 93
99 // Initialize output. 94 // Initialize output.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 146
152 147
153 /* DISALLOW_ALLOCATION */ 148 /* DISALLOW_ALLOCATION */
154 void VmServiceServer::operator delete(void* pointer) { 149 void VmServiceServer::operator delete(void* pointer) {
155 fprintf(stderr, "unreachable code\n"); 150 fprintf(stderr, "unreachable code\n");
156 abort(); 151 abort();
157 } 152 }
158 153
159 } // namespace bin 154 } // namespace bin
160 } // namespace dart 155 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/vmservice_dartium.h ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698