OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync_file_system/sync_file_system_api.h" | 5 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_ob
server.h" | 13 #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_ob
server.h" |
14 #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_ob
server_factory.h" | 14 #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_ob
server_factory.h" |
15 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" | 15 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/drive_file_sync_service.
h" | 17 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_servi
ce.h" |
18 #include "chrome/browser/sync_file_system/sync_file_status.h" | 18 #include "chrome/browser/sync_file_system/sync_file_status.h" |
19 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 19 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
20 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 20 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
21 #include "chrome/common/extensions/api/sync_file_system.h" | 21 #include "chrome/common/extensions/api/sync_file_system.h" |
22 #include "content/public/browser/browser_context.h" | 22 #include "content/public/browser/browser_context.h" |
23 #include "content/public/browser/render_view_host.h" | 23 #include "content/public/browser/render_view_host.h" |
24 #include "content/public/browser/storage_partition.h" | 24 #include "content/public/browser/storage_partition.h" |
25 #include "content/public/common/content_client.h" | 25 #include "content/public/common/content_client.h" |
26 #include "webkit/browser/fileapi/file_system_context.h" | 26 #include "webkit/browser/fileapi/file_system_context.h" |
27 #include "webkit/browser/fileapi/file_system_url.h" | 27 #include "webkit/browser/fileapi/file_system_url.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 372 |
373 bool SyncFileSystemGetServiceStatusFunction::RunImpl() { | 373 bool SyncFileSystemGetServiceStatusFunction::RunImpl() { |
374 sync_file_system::SyncFileSystemService* service = GetSyncFileSystemService( | 374 sync_file_system::SyncFileSystemService* service = GetSyncFileSystemService( |
375 profile()); | 375 profile()); |
376 results_ = api::sync_file_system::GetServiceStatus::Results::Create( | 376 results_ = api::sync_file_system::GetServiceStatus::Results::Create( |
377 SyncServiceStateToExtensionEnum(service->GetSyncServiceState())); | 377 SyncServiceStateToExtensionEnum(service->GetSyncServiceState())); |
378 return true; | 378 return true; |
379 } | 379 } |
380 | 380 |
381 } // namespace extensions | 381 } // namespace extensions |
OLD | NEW |