| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 LogPrivateStartNetInternalsWatchFunction:: | 216 LogPrivateStartNetInternalsWatchFunction:: |
| 217 LogPrivateStartNetInternalsWatchFunction() { | 217 LogPrivateStartNetInternalsWatchFunction() { |
| 218 } | 218 } |
| 219 | 219 |
| 220 LogPrivateStartNetInternalsWatchFunction:: | 220 LogPrivateStartNetInternalsWatchFunction:: |
| 221 ~LogPrivateStartNetInternalsWatchFunction() { | 221 ~LogPrivateStartNetInternalsWatchFunction() { |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool LogPrivateStartNetInternalsWatchFunction::RunImpl() { | 224 bool LogPrivateStartNetInternalsWatchFunction::RunSync() { |
| 225 LogPrivateAPI::Get(GetProfile())->StartNetInternalsWatch(extension_id()); | 225 LogPrivateAPI::Get(GetProfile())->StartNetInternalsWatch(extension_id()); |
| 226 return true; | 226 return true; |
| 227 } | 227 } |
| 228 | 228 |
| 229 LogPrivateStopNetInternalsWatchFunction:: | 229 LogPrivateStopNetInternalsWatchFunction:: |
| 230 LogPrivateStopNetInternalsWatchFunction() { | 230 LogPrivateStopNetInternalsWatchFunction() { |
| 231 } | 231 } |
| 232 | 232 |
| 233 LogPrivateStopNetInternalsWatchFunction:: | 233 LogPrivateStopNetInternalsWatchFunction:: |
| 234 ~LogPrivateStopNetInternalsWatchFunction() { | 234 ~LogPrivateStopNetInternalsWatchFunction() { |
| 235 } | 235 } |
| 236 | 236 |
| 237 bool LogPrivateStopNetInternalsWatchFunction::RunImpl() { | 237 bool LogPrivateStopNetInternalsWatchFunction::RunSync() { |
| 238 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); | 238 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); |
| 239 return true; | 239 return true; |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace extensions | 242 } // namespace extensions |
| OLD | NEW |