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

Side by Side Diff: chrome/browser/google_apis/dummy_drive_service.h

Issue 12207075: Split InitiateUpload method into two. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_extract_initiate_upload_operation_base
Patch Set: Rebase Created 7 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
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 #ifndef CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_
7 7
8 #include "chrome/browser/google_apis/drive_service_interface.h" 8 #include "chrome/browser/google_apis/drive_service_interface.h"
9 9
10 namespace google_apis { 10 namespace google_apis {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const std::string& resource_id, 63 const std::string& resource_id,
64 const EntryActionCallback& callback) OVERRIDE; 64 const EntryActionCallback& callback) OVERRIDE;
65 virtual void RemoveResourceFromDirectory( 65 virtual void RemoveResourceFromDirectory(
66 const std::string& parent_resource_id, 66 const std::string& parent_resource_id,
67 const std::string& resource_id, 67 const std::string& resource_id,
68 const EntryActionCallback& callback) OVERRIDE; 68 const EntryActionCallback& callback) OVERRIDE;
69 virtual void AddNewDirectory( 69 virtual void AddNewDirectory(
70 const std::string& parent_resource_id, 70 const std::string& parent_resource_id,
71 const std::string& directory_name, 71 const std::string& directory_name,
72 const GetResourceEntryCallback& callback) OVERRIDE; 72 const GetResourceEntryCallback& callback) OVERRIDE;
73 virtual void InitiateUpload(const InitiateUploadParams& params, 73 virtual void InitiateUploadNewFile(
74 const InitiateUploadCallback& callback) OVERRIDE; 74 const FilePath& drive_file_path,
75 const std::string& content_type,
76 int64 content_length,
77 const GURL& parent_upload_url,
78 const std::string& title,
79 const InitiateUploadCallback& callback) OVERRIDE;
80 virtual void InitiateUploadExistingFile(
81 const FilePath& drive_file_path,
82 const std::string& content_type,
83 int64 content_length,
84 const GURL& upload_url,
85 const std::string& etag,
86 const InitiateUploadCallback& callback) OVERRIDE;
75 virtual void ResumeUpload(const ResumeUploadParams& params, 87 virtual void ResumeUpload(const ResumeUploadParams& params,
76 const UploadRangeCallback& callback) OVERRIDE; 88 const UploadRangeCallback& callback) OVERRIDE;
77 virtual void GetUploadStatus( 89 virtual void GetUploadStatus(
78 UploadMode upload_mode, 90 UploadMode upload_mode,
79 const base::FilePath& drive_file_path, 91 const base::FilePath& drive_file_path,
80 const GURL& upload_url, 92 const GURL& upload_url,
81 int64 content_length, 93 int64 content_length,
82 const UploadRangeCallback& callback) OVERRIDE; 94 const UploadRangeCallback& callback) OVERRIDE;
83 virtual void AuthorizeApp(const GURL& edit_url, 95 virtual void AuthorizeApp(const GURL& edit_url,
84 const std::string& app_id, 96 const std::string& app_id,
85 const AuthorizeAppCallback& callback) OVERRIDE; 97 const AuthorizeAppCallback& callback) OVERRIDE;
86 }; 98 };
87 99
88 } // namespace google_apis 100 } // namespace google_apis
89 101
90 #endif // CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_ 102 #endif // CHROME_BROWSER_GOOGLE_APIS_DUMMY_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_uploader_unittest.cc ('k') | chrome/browser/google_apis/dummy_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698