OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_DRIVE_DRIVE_UPLOADER_H_ | 5 #ifndef COMPONENTS_DRIVE_DRIVE_UPLOADER_H_ |
6 #define CHROME_BROWSER_DRIVE_DRIVE_UPLOADER_H_ | 6 #define COMPONENTS_DRIVE_DRIVE_UPLOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "chrome/browser/drive/drive_service_interface.h" | 15 #include "components/drive/service/drive_service_interface.h" |
16 #include "google_apis/drive/drive_api_error_codes.h" | 16 #include "google_apis/drive/drive_api_error_codes.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class TaskRunner; | 22 class TaskRunner; |
23 } | 23 } |
24 | 24 |
25 namespace google_apis { | 25 namespace google_apis { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 scoped_refptr<RefCountedBatchRequest> current_batch_request_; | 230 scoped_refptr<RefCountedBatchRequest> current_batch_request_; |
231 | 231 |
232 // Note: This should remain the last member so it'll be destroyed and | 232 // Note: This should remain the last member so it'll be destroyed and |
233 // invalidate its weak pointers before any other members are destroyed. | 233 // invalidate its weak pointers before any other members are destroyed. |
234 base::WeakPtrFactory<DriveUploader> weak_ptr_factory_; | 234 base::WeakPtrFactory<DriveUploader> weak_ptr_factory_; |
235 DISALLOW_COPY_AND_ASSIGN(DriveUploader); | 235 DISALLOW_COPY_AND_ASSIGN(DriveUploader); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace drive | 238 } // namespace drive |
239 | 239 |
240 #endif // CHROME_BROWSER_DRIVE_DRIVE_UPLOADER_H_ | 240 #endif // COMPONENTS_DRIVE_DRIVE_UPLOADER_H_ |
OLD | NEW |