| 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 27 matching lines...) Expand all Loading... |
| 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 OnCompletedRequest(int error_code, | 45 void OnCompletedRequest(int error_code, |
| 46 bool was_ignored_by_handler, | 46 bool was_ignored_by_handler, |
| 47 bool stale_copy_in_cache, | 47 bool stale_copy_in_cache, |
| 48 const std::string& security_info, | |
| 49 const base::TimeTicks& completion_time, | 48 const base::TimeTicks& completion_time, |
| 50 int64_t total_transfer_size) override; | 49 int64_t total_transfer_size) override; |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 friend class ExtensionLocalizationPeerTest; | 52 friend class ExtensionLocalizationPeerTest; |
| 54 | 53 |
| 55 // Use CreateExtensionLocalizationPeer to create an instance. | 54 // Use CreateExtensionLocalizationPeer to create an instance. |
| 56 ExtensionLocalizationPeer(std::unique_ptr<content::RequestPeer> peer, | 55 ExtensionLocalizationPeer(std::unique_ptr<content::RequestPeer> peer, |
| 57 IPC::Sender* message_sender, | 56 IPC::Sender* message_sender, |
| 58 const GURL& request_url); | 57 const GURL& request_url); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 75 std::string data_; | 74 std::string data_; |
| 76 | 75 |
| 77 // Original request URL. | 76 // Original request URL. |
| 78 GURL request_url_; | 77 GURL request_url_; |
| 79 | 78 |
| 80 private: | 79 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 80 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 83 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
| OLD | NEW |