OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/log_private/log_private_api.h" | 5 #include "chrome/browser/extensions/api/log_private/log_private_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 | 210 |
211 LogPrivateStartNetInternalsWatchFunction:: | 211 LogPrivateStartNetInternalsWatchFunction:: |
212 LogPrivateStartNetInternalsWatchFunction() { | 212 LogPrivateStartNetInternalsWatchFunction() { |
213 } | 213 } |
214 | 214 |
215 LogPrivateStartNetInternalsWatchFunction:: | 215 LogPrivateStartNetInternalsWatchFunction:: |
216 ~LogPrivateStartNetInternalsWatchFunction() { | 216 ~LogPrivateStartNetInternalsWatchFunction() { |
217 } | 217 } |
218 | 218 |
219 bool LogPrivateStartNetInternalsWatchFunction::RunImpl() { | 219 bool LogPrivateStartNetInternalsWatchFunction::RunSync() { |
220 LogPrivateAPI::Get(GetProfile())->StartNetInternalsWatch(extension_id()); | 220 LogPrivateAPI::Get(GetProfile())->StartNetInternalsWatch(extension_id()); |
221 return true; | 221 return true; |
222 } | 222 } |
223 | 223 |
224 LogPrivateStopNetInternalsWatchFunction:: | 224 LogPrivateStopNetInternalsWatchFunction:: |
225 LogPrivateStopNetInternalsWatchFunction() { | 225 LogPrivateStopNetInternalsWatchFunction() { |
226 } | 226 } |
227 | 227 |
228 LogPrivateStopNetInternalsWatchFunction:: | 228 LogPrivateStopNetInternalsWatchFunction:: |
229 ~LogPrivateStopNetInternalsWatchFunction() { | 229 ~LogPrivateStopNetInternalsWatchFunction() { |
230 } | 230 } |
231 | 231 |
232 bool LogPrivateStopNetInternalsWatchFunction::RunImpl() { | 232 bool LogPrivateStopNetInternalsWatchFunction::RunSync() { |
233 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); | 233 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); |
234 return true; | 234 return true; |
235 } | 235 } |
236 | 236 |
237 } // namespace extensions | 237 } // namespace extensions |
OLD | NEW |