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 <string> | 8 #include <string> |
9 | 9 |
10 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // ResourceLoaderBridge::Peer methods. | 31 // ResourceLoaderBridge::Peer methods. |
32 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 32 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
33 virtual bool OnReceivedRedirect( | 33 virtual bool OnReceivedRedirect( |
34 const GURL& new_url, | 34 const GURL& new_url, |
35 const webkit_glue::ResourceResponseInfo& info, | 35 const webkit_glue::ResourceResponseInfo& info, |
36 bool* has_new_first_party_for_cookies, | 36 bool* has_new_first_party_for_cookies, |
37 GURL* new_first_party_for_cookies) OVERRIDE; | 37 GURL* new_first_party_for_cookies) OVERRIDE; |
38 virtual void OnReceivedResponse( | 38 virtual void OnReceivedResponse( |
39 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; | 39 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
40 virtual void OnDownloadedData(int len) OVERRIDE {} | 40 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} |
41 virtual void OnReceivedData(const char* data, | 41 virtual void OnReceivedData(const char* data, |
42 int data_length, | 42 int data_length, |
43 int encoded_data_length) OVERRIDE; | 43 int encoded_data_length) OVERRIDE; |
44 virtual void OnCompletedRequest( | 44 virtual void OnCompletedRequest( |
45 int error_code, | 45 int error_code, |
46 bool was_ignored_by_handler, | 46 bool was_ignored_by_handler, |
47 const std::string& security_info, | 47 const std::string& security_info, |
48 const base::TimeTicks& completion_time) OVERRIDE; | 48 const base::TimeTicks& completion_time) OVERRIDE; |
49 | 49 |
50 private: | 50 private: |
(...skipping 23 matching lines...) Expand all Loading... |
74 std::string data_; | 74 std::string data_; |
75 | 75 |
76 // Original request URL. | 76 // Original request URL. |
77 GURL request_url_; | 77 GURL request_url_; |
78 | 78 |
79 private: | 79 private: |
80 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 80 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
81 }; | 81 }; |
82 | 82 |
83 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 83 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
OLD | NEW |