OLD | NEW |
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_GDATA_WAPI_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // directory_resource_id: | 44 // directory_resource_id: |
45 // If non-empty, fetches a list of resources in a particular directory. | 45 // If non-empty, fetches a list of resources in a particular directory. |
46 // | 46 // |
47 // callback: | 47 // callback: |
48 // Called once the feed is fetched. Must not be null. | 48 // Called once the feed is fetched. Must not be null. |
49 GetResourceListOperation( | 49 GetResourceListOperation( |
50 OperationRegistry* registry, | 50 OperationRegistry* registry, |
51 net::URLRequestContextGetter* url_request_context_getter, | 51 net::URLRequestContextGetter* url_request_context_getter, |
52 const GDataWapiUrlGenerator& url_generator, | 52 const GDataWapiUrlGenerator& url_generator, |
53 const GURL& override_url, | 53 const GURL& override_url, |
54 int start_changestamp, | 54 int64 start_changestamp, |
55 const std::string& search_string, | 55 const std::string& search_string, |
56 const std::string& directory_resource_id, | 56 const std::string& directory_resource_id, |
57 const GetResourceListCallback& callback); | 57 const GetResourceListCallback& callback); |
58 virtual ~GetResourceListOperation(); | 58 virtual ~GetResourceListOperation(); |
59 | 59 |
60 protected: | 60 protected: |
61 // UrlFetchOperationBase overrides. | 61 // UrlFetchOperationBase overrides. |
62 virtual GURL GetURL() const OVERRIDE; | 62 virtual GURL GetURL() const OVERRIDE; |
63 | 63 |
64 private: | 64 private: |
65 const GDataWapiUrlGenerator url_generator_; | 65 const GDataWapiUrlGenerator url_generator_; |
66 const GURL override_url_; | 66 const GURL override_url_; |
67 const int start_changestamp_; | 67 const int64 start_changestamp_; |
68 const std::string search_string_; | 68 const std::string search_string_; |
69 const std::string directory_resource_id_; | 69 const std::string directory_resource_id_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(GetResourceListOperation); | 71 DISALLOW_COPY_AND_ASSIGN(GetResourceListOperation); |
72 }; | 72 }; |
73 | 73 |
74 //========================= GetResourceEntryOperation ========================== | 74 //========================= GetResourceEntryOperation ========================== |
75 | 75 |
76 // This class performs the operation for fetching a single resource entry. | 76 // This class performs the operation for fetching a single resource entry. |
77 class GetResourceEntryOperation : public GetDataOperation { | 77 class GetResourceEntryOperation : public GetDataOperation { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 private: | 501 private: |
502 const UploadRangeCallback callback_; | 502 const UploadRangeCallback callback_; |
503 const int64 content_length_; | 503 const int64 content_length_; |
504 | 504 |
505 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation); | 505 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation); |
506 }; | 506 }; |
507 | 507 |
508 } // namespace google_apis | 508 } // namespace google_apis |
509 | 509 |
510 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ | 510 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
OLD | NEW |