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

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

Issue 2378173002: Precache per-resource cap should be applied on network bytes used (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/test/mock_google_streaming_server.cc ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file provides base classes used to issue HTTP requests for Google 5 // This file provides base classes used to issue HTTP requests for Google
6 // APIs. 6 // APIs.
7 7
8 #ifndef GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ 8 #ifndef GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_
9 #define GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ 9 #define GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_
10 10
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 // UrlFetchRequestBase overrides. 623 // UrlFetchRequestBase overrides.
624 GURL GetURL() const override; 624 GURL GetURL() const override;
625 void GetOutputFilePath(base::FilePath* local_file_path, 625 void GetOutputFilePath(base::FilePath* local_file_path,
626 GetContentCallback* get_content_callback) override; 626 GetContentCallback* get_content_callback) override;
627 void ProcessURLFetchResults(const net::URLFetcher* source) override; 627 void ProcessURLFetchResults(const net::URLFetcher* source) override;
628 void RunCallbackOnPrematureFailure(DriveApiErrorCode code) override; 628 void RunCallbackOnPrematureFailure(DriveApiErrorCode code) override;
629 629
630 // net::URLFetcherDelegate overrides. 630 // net::URLFetcherDelegate overrides.
631 void OnURLFetchDownloadProgress(const net::URLFetcher* source, 631 void OnURLFetchDownloadProgress(const net::URLFetcher* source,
632 int64_t current, 632 int64_t current,
633 int64_t total) override; 633 int64_t total,
634 int64_t current_network_bytes) override;
634 635
635 private: 636 private:
636 const DownloadActionCallback download_action_callback_; 637 const DownloadActionCallback download_action_callback_;
637 const GetContentCallback get_content_callback_; 638 const GetContentCallback get_content_callback_;
638 const ProgressCallback progress_callback_; 639 const ProgressCallback progress_callback_;
639 const GURL download_url_; 640 const GURL download_url_;
640 const base::FilePath output_file_path_; 641 const base::FilePath output_file_path_;
641 642
642 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequestBase); 643 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequestBase);
643 }; 644 };
644 645
645 } // namespace google_apis 646 } // namespace google_apis
646 647
647 #endif // GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ 648 #endif // GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_
OLDNEW
« no previous file with comments | « content/test/mock_google_streaming_server.cc ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698