| 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 <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 void LogPrivateAPI::RegisterTempFileOnFileResourceSequence( | 401 void LogPrivateAPI::RegisterTempFileOnFileResourceSequence( |
| 402 const std::string& owner_extension_id, | 402 const std::string& owner_extension_id, |
| 403 const base::FilePath& file_path) { | 403 const base::FilePath& file_path) { |
| 404 AssertCurrentlyOnFileResourceSequence(); | 404 AssertCurrentlyOnFileResourceSequence(); |
| 405 log_file_resources_.Add(new FileResource(owner_extension_id, file_path)); | 405 log_file_resources_.Add(new FileResource(owner_extension_id, file_path)); |
| 406 } | 406 } |
| 407 | 407 |
| 408 void LogPrivateAPI::OnExtensionUnloaded( | 408 void LogPrivateAPI::OnExtensionUnloaded( |
| 409 content::BrowserContext* browser_context, | 409 content::BrowserContext* browser_context, |
| 410 const Extension* extension, | 410 const Extension* extension, |
| 411 UnloadedExtensionInfo::Reason reason) { | 411 UnloadedExtensionReason reason) { |
| 412 StopNetInternalsWatch(extension->id(), base::Closure()); | 412 StopNetInternalsWatch(extension->id(), base::Closure()); |
| 413 } | 413 } |
| 414 | 414 |
| 415 LogPrivateGetHistoricalFunction::LogPrivateGetHistoricalFunction() { | 415 LogPrivateGetHistoricalFunction::LogPrivateGetHistoricalFunction() { |
| 416 } | 416 } |
| 417 | 417 |
| 418 LogPrivateGetHistoricalFunction::~LogPrivateGetHistoricalFunction() { | 418 LogPrivateGetHistoricalFunction::~LogPrivateGetHistoricalFunction() { |
| 419 } | 419 } |
| 420 | 420 |
| 421 bool LogPrivateGetHistoricalFunction::RunAsync() { | 421 bool LogPrivateGetHistoricalFunction::RunAsync() { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 entry->SetBoolean("isDirectory", false); | 555 entry->SetBoolean("isDirectory", false); |
| 556 auto entry_list = base::MakeUnique<base::ListValue>(); | 556 auto entry_list = base::MakeUnique<base::ListValue>(); |
| 557 entry_list->Append(std::move(entry)); | 557 entry_list->Append(std::move(entry)); |
| 558 response->Set("entries", std::move(entry_list)); | 558 response->Set("entries", std::move(entry_list)); |
| 559 response->SetBoolean("multiple", false); | 559 response->SetBoolean("multiple", false); |
| 560 SetResult(std::move(response)); | 560 SetResult(std::move(response)); |
| 561 SendResponse(succeeded); | 561 SendResponse(succeeded); |
| 562 } | 562 } |
| 563 | 563 |
| 564 } // namespace extensions | 564 } // namespace extensions |
| OLD | NEW |