Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: webkit/fileapi/syncable/canned_syncable_file_system.cc

Issue 11648027: Extract external file systems handling from isolated context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "webkit/fileapi/syncable/canned_syncable_file_system.h" 5 #include "webkit/fileapi/syncable/canned_syncable_file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/task_runner_util.h" 13 #include "base/task_runner_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "webkit/blob/mock_blob_url_request_context.h" 15 #include "webkit/blob/mock_blob_url_request_context.h"
16 #include "webkit/fileapi/file_system_context.h" 16 #include "webkit/fileapi/file_system_context.h"
17 #include "webkit/fileapi/file_system_operation_context.h" 17 #include "webkit/fileapi/file_system_operation_context.h"
18 #include "webkit/fileapi/file_system_task_runners.h" 18 #include "webkit/fileapi/file_system_task_runners.h"
19 #include "webkit/fileapi/isolated_context.h"
20 #include "webkit/fileapi/local_file_system_operation.h" 19 #include "webkit/fileapi/local_file_system_operation.h"
21 #include "webkit/fileapi/mock_file_system_options.h" 20 #include "webkit/fileapi/mock_file_system_options.h"
22 #include "webkit/fileapi/sandbox_mount_point_provider.h" 21 #include "webkit/fileapi/sandbox_mount_point_provider.h"
23 #include "webkit/fileapi/syncable/local_file_change_tracker.h" 22 #include "webkit/fileapi/syncable/local_file_change_tracker.h"
24 #include "webkit/fileapi/syncable/local_file_sync_context.h" 23 #include "webkit/fileapi/syncable/local_file_sync_context.h"
25 #include "webkit/quota/mock_special_storage_policy.h" 24 #include "webkit/quota/mock_special_storage_policy.h"
26 #include "webkit/quota/quota_manager.h" 25 #include "webkit/quota/quota_manager.h"
27 26
28 using base::PlatformFileError; 27 using base::PlatformFileError;
29 using quota::QuotaManager; 28 using quota::QuotaManager;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 sync_status_ = status; 589 sync_status_ = status;
591 MessageLoop::current()->Quit(); 590 MessageLoop::current()->Quit();
592 } 591 }
593 592
594 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { 593 void CannedSyncableFileSystem::InitializeSyncStatusObserver() {
595 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); 594 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
596 file_system_context_->sync_context()->sync_status()->AddObserver(this); 595 file_system_context_->sync_context()->sync_status()->AddObserver(this);
597 } 596 }
598 597
599 } // namespace fileapi 598 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698