OLD | NEW |
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 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 24 matching lines...) Expand all Loading... |
35 const std::string& mime_type, | 35 const std::string& mime_type, |
36 const GURL& request_url); | 36 const GURL& request_url); |
37 | 37 |
38 // content::RequestPeer methods. | 38 // content::RequestPeer methods. |
39 void OnUploadProgress(uint64_t position, uint64_t size) override; | 39 void OnUploadProgress(uint64_t position, uint64_t size) override; |
40 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, | 40 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, |
41 const content::ResourceResponseInfo& info) override; | 41 const content::ResourceResponseInfo& info) override; |
42 void OnReceivedResponse(const content::ResourceResponseInfo& info) override; | 42 void OnReceivedResponse(const content::ResourceResponseInfo& info) override; |
43 void OnDownloadedData(int len, int encoded_data_length) override {} | 43 void OnDownloadedData(int len, int encoded_data_length) override {} |
44 void OnReceivedData(std::unique_ptr<ReceivedData> data) override; | 44 void OnReceivedData(std::unique_ptr<ReceivedData> data) override; |
| 45 void OnTransferSizeUpdated(int transfer_size_diff) override; |
45 void OnCompletedRequest(int error_code, | 46 void OnCompletedRequest(int error_code, |
46 bool was_ignored_by_handler, | 47 bool was_ignored_by_handler, |
47 bool stale_copy_in_cache, | 48 bool stale_copy_in_cache, |
48 const base::TimeTicks& completion_time, | 49 const base::TimeTicks& completion_time, |
49 int64_t total_transfer_size, | 50 int64_t total_transfer_size, |
50 int64_t encoded_body_size) override; | 51 int64_t encoded_body_size) override; |
51 | 52 |
52 private: | 53 private: |
53 friend class ExtensionLocalizationPeerTest; | 54 friend class ExtensionLocalizationPeerTest; |
54 | 55 |
(...skipping 20 matching lines...) Expand all Loading... |
75 std::string data_; | 76 std::string data_; |
76 | 77 |
77 // Original request URL. | 78 // Original request URL. |
78 GURL request_url_; | 79 GURL request_url_; |
79 | 80 |
80 private: | 81 private: |
81 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 82 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
82 }; | 83 }; |
83 | 84 |
84 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 85 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
OLD | NEW |