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

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

Issue 22909041: Refactor GetAboutRequest and GetApplistRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « chrome/browser/google_apis/drive_api_url_generator_unittest.cc ('k') | no next file » | 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 // This file contains callback types used for communicating with the Drive 5 // This file contains callback types used for communicating with the Drive
6 // server via WAPI (Documents List API) and Drive API. 6 // server via WAPI (Documents List API) and Drive API.
7 7
8 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_ 8 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
9 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_ 9 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
10 10
(...skipping 12 matching lines...) Expand all
23 GetResourceListCallback; 23 GetResourceListCallback;
24 24
25 // Callback used for getting ResourceEntry. 25 // Callback used for getting ResourceEntry.
26 typedef base::Callback<void(GDataErrorCode error, 26 typedef base::Callback<void(GDataErrorCode error,
27 scoped_ptr<ResourceEntry> entry)> 27 scoped_ptr<ResourceEntry> entry)>
28 GetResourceEntryCallback; 28 GetResourceEntryCallback;
29 29
30 // Callback used for getting AboutResource. 30 // Callback used for getting AboutResource.
31 typedef base::Callback<void(GDataErrorCode error, 31 typedef base::Callback<void(GDataErrorCode error,
32 scoped_ptr<AboutResource> about_resource)> 32 scoped_ptr<AboutResource> about_resource)>
33 GetAboutResourceCallback; 33 AboutResourceCallback;
34 34
35 // Callback used for getting ShareUrl. 35 // Callback used for getting ShareUrl.
36 typedef base::Callback<void(GDataErrorCode error, 36 typedef base::Callback<void(GDataErrorCode error,
37 const GURL& share_url)> GetShareUrlCallback; 37 const GURL& share_url)> GetShareUrlCallback;
38 38
39 // Callback used for getting AppList. 39 // Callback used for getting AppList.
40 typedef base::Callback<void(GDataErrorCode error, 40 typedef base::Callback<void(GDataErrorCode error,
41 scoped_ptr<AppList> app_list)> GetAppListCallback; 41 scoped_ptr<AppList> app_list)> AppListCallback;
42 42
43 // Callback used for handling UploadRangeResponse. 43 // Callback used for handling UploadRangeResponse.
44 typedef base::Callback<void( 44 typedef base::Callback<void(
45 const UploadRangeResponse& response, 45 const UploadRangeResponse& response,
46 scoped_ptr<ResourceEntry> new_entry)> UploadRangeCallback; 46 scoped_ptr<ResourceEntry> new_entry)> UploadRangeCallback;
47 47
48 // Callback used for authorizing an app. |open_url| is used to open the target 48 // Callback used for authorizing an app. |open_url| is used to open the target
49 // file with the authorized app. 49 // file with the authorized app.
50 typedef base::Callback<void(GDataErrorCode error, 50 typedef base::Callback<void(GDataErrorCode error,
51 const GURL& open_url)> 51 const GURL& open_url)>
52 AuthorizeAppCallback; 52 AuthorizeAppCallback;
53 53
54 // Closure for canceling a certain request. Each request-issuing method returns 54 // Closure for canceling a certain request. Each request-issuing method returns
55 // this type of closure. If it is called during the request is in-flight, the 55 // this type of closure. If it is called during the request is in-flight, the
56 // callback passed with the request is invoked with GDATA_CANCELLED. If the 56 // callback passed with the request is invoked with GDATA_CANCELLED. If the
57 // request is already finished, nothing happens. 57 // request is already finished, nothing happens.
58 typedef base::Closure CancelCallback; 58 typedef base::Closure CancelCallback;
59 59
60 } // namespace google_apis 60 } // namespace google_apis
61 61
62 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_ 62 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_url_generator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698