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

Side by Side Diff: chrome/browser/sync_file_system/local/canned_syncable_file_system.cc

Issue 146963006: Move blob/mock_blob_url_request_context to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix duplicate GYPI entries (should fix link errors on Android and Win) Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/sync_file_system/local/canned_syncable_file_system.h" 5 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/guid.h" 14 #include "base/guid.h"
15 #include "base/message_loop/message_loop_proxy.h" 15 #include "base/message_loop/message_loop_proxy.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/task_runner_util.h" 18 #include "base/task_runner_util.h"
19 #include "chrome/browser/sync_file_system/file_change.h" 19 #include "chrome/browser/sync_file_system/file_change.h"
20 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" 20 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
21 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" 21 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
22 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 22 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
23 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 23 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
24 #include "content/public/test/mock_blob_url_request_context.h"
24 #include "content/public/test/test_file_system_options.h" 25 #include "content/public/test/test_file_system_options.h"
25 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
26 #include "webkit/browser/blob/mock_blob_url_request_context.h"
27 #include "webkit/browser/fileapi/external_mount_points.h" 27 #include "webkit/browser/fileapi/external_mount_points.h"
28 #include "webkit/browser/fileapi/file_system_backend.h" 28 #include "webkit/browser/fileapi/file_system_backend.h"
29 #include "webkit/browser/fileapi/file_system_context.h" 29 #include "webkit/browser/fileapi/file_system_context.h"
30 #include "webkit/browser/fileapi/file_system_operation_context.h" 30 #include "webkit/browser/fileapi/file_system_operation_context.h"
31 #include "webkit/browser/fileapi/file_system_operation_runner.h" 31 #include "webkit/browser/fileapi/file_system_operation_runner.h"
32 #include "webkit/browser/quota/mock_special_storage_policy.h" 32 #include "webkit/browser/quota/mock_special_storage_policy.h"
33 #include "webkit/browser/quota/quota_manager.h" 33 #include "webkit/browser/quota/quota_manager.h"
34 #include "webkit/common/blob/shareable_file_reference.h" 34 #include "webkit/common/blob/shareable_file_reference.h"
35 35
36 using base::File; 36 using base::File;
37 using fileapi::FileSystemContext; 37 using fileapi::FileSystemContext;
38 using fileapi::FileSystemOperationRunner; 38 using fileapi::FileSystemOperationRunner;
39 using fileapi::FileSystemURL; 39 using fileapi::FileSystemURL;
40 using fileapi::FileSystemURLSet; 40 using fileapi::FileSystemURLSet;
41 using quota::QuotaManager; 41 using quota::QuotaManager;
42 using webkit_blob::MockBlobURLRequestContext; 42 using content::MockBlobURLRequestContext;
43 using webkit_blob::ScopedTextBlob; 43 using content::ScopedTextBlob;
44 44
45 namespace sync_file_system { 45 namespace sync_file_system {
46 46
47 namespace { 47 namespace {
48 48
49 void Quit() { base::MessageLoop::current()->Quit(); } 49 void Quit() { base::MessageLoop::current()->Quit(); }
50 50
51 template <typename R> 51 template <typename R>
52 void AssignAndQuit(base::TaskRunner* original_task_runner, 52 void AssignAndQuit(base::TaskRunner* original_task_runner,
53 R* result_out, R result) { 53 R* result_out, R result) {
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 sync_status_ = status; 739 sync_status_ = status;
740 base::MessageLoop::current()->Quit(); 740 base::MessageLoop::current()->Quit();
741 } 741 }
742 742
743 void CannedSyncableFileSystem::InitializeSyncStatusObserver() { 743 void CannedSyncableFileSystem::InitializeSyncStatusObserver() {
744 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread()); 744 ASSERT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
745 backend()->sync_context()->sync_status()->AddObserver(this); 745 backend()->sync_context()->sync_status()->AddObserver(this);
746 } 746 }
747 747
748 } // namespace sync_file_system 748 } // namespace sync_file_system
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698