OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 bool* has_new_first_party_for_cookies, | 37 bool* has_new_first_party_for_cookies, |
38 GURL* new_first_party_for_cookies) OVERRIDE; | 38 GURL* new_first_party_for_cookies) OVERRIDE; |
39 virtual void OnReceivedResponse( | 39 virtual void OnReceivedResponse( |
40 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; | 40 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
41 virtual void OnDownloadedData(int len) OVERRIDE {} | 41 virtual void OnDownloadedData(int len) OVERRIDE {} |
42 virtual void OnReceivedData(const char* data, | 42 virtual void OnReceivedData(const char* data, |
43 int data_length, | 43 int data_length, |
44 int encoded_data_length) OVERRIDE; | 44 int encoded_data_length) OVERRIDE; |
45 virtual void OnCompletedRequest( | 45 virtual void OnCompletedRequest( |
46 const net::URLRequestStatus& status, | 46 const net::URLRequestStatus& status, |
| 47 bool handled_externally, |
47 const std::string& security_info, | 48 const std::string& security_info, |
48 const base::TimeTicks& completion_time) OVERRIDE; | 49 const base::TimeTicks& completion_time) OVERRIDE; |
49 | 50 |
50 private: | 51 private: |
51 friend class ExtensionLocalizationPeerTest; | 52 friend class ExtensionLocalizationPeerTest; |
52 | 53 |
53 // Use CreateExtensionLocalizationPeer to create an instance. | 54 // Use CreateExtensionLocalizationPeer to create an instance. |
54 ExtensionLocalizationPeer( | 55 ExtensionLocalizationPeer( |
55 webkit_glue::ResourceLoaderBridge::Peer* peer, | 56 webkit_glue::ResourceLoaderBridge::Peer* peer, |
56 IPC::Sender* message_sender, | 57 IPC::Sender* message_sender, |
(...skipping 17 matching lines...) Expand all Loading... |
74 std::string data_; | 75 std::string data_; |
75 | 76 |
76 // Original request URL. | 77 // Original request URL. |
77 GURL request_url_; | 78 GURL request_url_; |
78 | 79 |
79 private: | 80 private: |
80 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 81 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
81 }; | 82 }; |
82 | 83 |
83 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 84 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
OLD | NEW |