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

Side by Side Diff: google_apis/drive/drive_common_callbacks.h

Issue 861133002: Remove WAPI-related code, except the type definition of ResourceEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more WAPI related code. Created 5 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
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 GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_ 8 #ifndef GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_
9 #define GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_ 9 #define GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_
10 10
11 #include "google_apis/drive/base_requests.h" 11 #include "google_apis/drive/base_requests.h"
12 12
13 namespace google_apis { 13 namespace google_apis {
14 14
15 class AboutResource; 15 class AboutResource;
16 class AppList; 16 class AppList;
17 class ResourceEntry; 17 class ResourceEntry;
18 class ResourceList;
19
20 // Callback used for getting ResourceList.
21 typedef base::Callback<void(GDataErrorCode error,
22 scoped_ptr<ResourceList> resource_list)>
23 GetResourceListCallback;
24 18
25 // Callback used for getting ResourceEntry. 19 // Callback used for getting ResourceEntry.
26 typedef base::Callback<void(GDataErrorCode error, 20 typedef base::Callback<void(GDataErrorCode error,
27 scoped_ptr<ResourceEntry> entry)> 21 scoped_ptr<ResourceEntry> entry)>
28 GetResourceEntryCallback; 22 GetResourceEntryCallback;
hashimoto 2015/01/22 08:02:01 nit: This typedef if unused?
fukino 2015/01/22 09:02:32 Done (Removed)
29 23
30 // Callback used for getting AboutResource. 24 // Callback used for getting AboutResource.
31 typedef base::Callback<void(GDataErrorCode error, 25 typedef base::Callback<void(GDataErrorCode error,
32 scoped_ptr<AboutResource> about_resource)> 26 scoped_ptr<AboutResource> about_resource)>
33 AboutResourceCallback; 27 AboutResourceCallback;
34 28
35 // Callback used for getting ShareUrl. 29 // Callback used for getting ShareUrl.
36 typedef base::Callback<void(GDataErrorCode error, 30 typedef base::Callback<void(GDataErrorCode error,
37 const GURL& share_url)> GetShareUrlCallback; 31 const GURL& share_url)> GetShareUrlCallback;
38 32
39 // Callback used for getting AppList. 33 // Callback used for getting AppList.
40 typedef base::Callback<void(GDataErrorCode error, 34 typedef base::Callback<void(GDataErrorCode error,
41 scoped_ptr<AppList> app_list)> AppListCallback; 35 scoped_ptr<AppList> app_list)> AppListCallback;
42 36
43 // Callback used for authorizing an app. |open_url| is used to open the target 37 // Callback used for authorizing an app. |open_url| is used to open the target
44 // file with the authorized app. 38 // file with the authorized app.
45 typedef base::Callback<void(GDataErrorCode error, 39 typedef base::Callback<void(GDataErrorCode error,
46 const GURL& open_url)> 40 const GURL& open_url)>
47 AuthorizeAppCallback; 41 AuthorizeAppCallback;
48 42
49 // Closure for canceling a certain request. Each request-issuing method returns 43 // Closure for canceling a certain request. Each request-issuing method returns
50 // this type of closure. If it is called during the request is in-flight, the 44 // this type of closure. If it is called during the request is in-flight, the
51 // callback passed with the request is invoked with GDATA_CANCELLED. If the 45 // callback passed with the request is invoked with GDATA_CANCELLED. If the
52 // request is already finished, nothing happens. 46 // request is already finished, nothing happens.
53 typedef base::Closure CancelCallback; 47 typedef base::Closure CancelCallback;
54 48
55 } // namespace google_apis 49 } // namespace google_apis
56 50
57 #endif // GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_ 51 #endif // GOOGLE_APIS_DRIVE_DRIVE_COMMON_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698