| 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/ui/webui/sync_file_system_internals/file_metadata_handl
er.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handl
er.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" | 12 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
| 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
| 16 #include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_
handler.h" | 16 #include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_
handler.h" |
| 17 #include "chrome/common/extensions/extension.h" | |
| 18 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 19 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "extensions/common/extension.h" |
| 20 #include "grit/sync_file_system_internals_resources.h" | 20 #include "grit/sync_file_system_internals_resources.h" |
| 21 | 21 |
| 22 using sync_file_system::RemoteFileSyncService; | 22 using sync_file_system::RemoteFileSyncService; |
| 23 using sync_file_system::SyncFileSystemServiceFactory; | 23 using sync_file_system::SyncFileSystemServiceFactory; |
| 24 using sync_file_system::SyncServiceState; | 24 using sync_file_system::SyncServiceState; |
| 25 | 25 |
| 26 namespace syncfs_internals { | 26 namespace syncfs_internals { |
| 27 | 27 |
| 28 FileMetadataHandler::FileMetadataHandler(Profile* profile) | 28 FileMetadataHandler::FileMetadataHandler(Profile* profile) |
| 29 : profile_(profile), | 29 : profile_(profile), |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ExtensionStatusesHandler::GetExtensionStatusesAsDictionary(profile_, &list); | 68 ExtensionStatusesHandler::GetExtensionStatusesAsDictionary(profile_, &list); |
| 69 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); | 69 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue* files) { | 72 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue* files) { |
| 73 DCHECK(files); | 73 DCHECK(files); |
| 74 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", *files); | 74 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", *files); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace syncfs_internals | 77 } // namespace syncfs_internals |
| OLD | NEW |