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

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

Issue 17395010: drive: Introduce chrome/browser/google_apis/drive_common_callbacks.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 7 years, 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // This file contains callback types used for communicating with the Drive
6 // server via WAPI (Documents List API) and Drive API.
7
8 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
9 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
10
11 #include "chrome/browser/google_apis/base_requests.h"
12
13 namespace google_apis {
14
15 class AboutResource;
16 class AppList;
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
25 // Callback used for getting ResourceEntry.
26 typedef base::Callback<void(GDataErrorCode error,
27 scoped_ptr<ResourceEntry> entry)>
28 GetResourceEntryCallback;
29
30 // Callback used for gettign AboutResource.
31 typedef base::Callback<void(GDataErrorCode error,
32 scoped_ptr<AboutResource> about_resource)>
33 GetAboutResourceCallback;
34
35 // Callback used for getting AppList.
36 typedef base::Callback<void(GDataErrorCode error,
37 scoped_ptr<AppList> app_list)>
38 GetAppListCallback;
39
40 // Callback used for handling UploadRangeResponse.
41 typedef base::Callback<void(
42 const UploadRangeResponse& response,
43 scoped_ptr<ResourceEntry> new_entry)> UploadRangeCallback;
44
45 // Callback used for authrozing an app. |open_url| is used to open the target
46 // file with the authorized app.
47 typedef base::Callback<void(GDataErrorCode error,
48 const GURL& open_url)>
49 AuthorizeAppCallback;
50
51 // Closure for canceling a certain request. Each request-issuing method returns
52 // this type of closure. If it is called during the request is in-flight, the
53 // callback passed with the request is invoked with GDATA_CANCELLED. If the
54 // request is already finished, nothing happens.
55 typedef base::Closure CancelCallback;
56
57 } // namespace google_apis
58
59 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_COMMON_CALLBACKS_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_requests.h ('k') | chrome/browser/google_apis/gdata_wapi_requests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698