OLD | NEW |
1 // Copyright (c) 2010 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 | |
6 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
7 #define CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
8 #pragma once | 7 #pragma once |
9 | 8 |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
13 #include "webkit/glue/resource_loader_bridge.h" | 12 #include "webkit/glue/resource_loader_bridge.h" |
14 | 13 |
15 // The ExtensionLocalizationPeer is a proxy to a | 14 // The ExtensionLocalizationPeer is a proxy to a |
(...skipping 19 matching lines...) Expand all Loading... |
35 virtual bool OnReceivedRedirect( | 34 virtual bool OnReceivedRedirect( |
36 const GURL& new_url, | 35 const GURL& new_url, |
37 const webkit_glue::ResourceResponseInfo& info, | 36 const webkit_glue::ResourceResponseInfo& info, |
38 bool* has_new_first_party_for_cookies, | 37 bool* has_new_first_party_for_cookies, |
39 GURL* new_first_party_for_cookies); | 38 GURL* new_first_party_for_cookies); |
40 virtual void OnReceivedResponse( | 39 virtual void OnReceivedResponse( |
41 const webkit_glue::ResourceResponseInfo& info, | 40 const webkit_glue::ResourceResponseInfo& info, |
42 bool content_filtered); | 41 bool content_filtered); |
43 virtual void OnDownloadedData(int len) {} | 42 virtual void OnDownloadedData(int len) {} |
44 virtual void OnReceivedData(const char* data, int len); | 43 virtual void OnReceivedData(const char* data, int len); |
45 virtual void OnCompletedRequest(const URLRequestStatus& status, | 44 virtual void OnCompletedRequest(const net::URLRequestStatus& status, |
46 const std::string& security_info, | 45 const std::string& security_info, |
47 const base::Time& completion_time); | 46 const base::Time& completion_time); |
48 | 47 |
49 private: | 48 private: |
50 friend class ExtensionLocalizationPeerTest; | 49 friend class ExtensionLocalizationPeerTest; |
51 | 50 |
52 // Use CreateExtensionLocalizationPeer to create an instance. | 51 // Use CreateExtensionLocalizationPeer to create an instance. |
53 ExtensionLocalizationPeer( | 52 ExtensionLocalizationPeer( |
54 webkit_glue::ResourceLoaderBridge::Peer* peer, | 53 webkit_glue::ResourceLoaderBridge::Peer* peer, |
55 IPC::Message::Sender* message_sender, | 54 IPC::Message::Sender* message_sender, |
(...skipping 17 matching lines...) Expand all Loading... |
73 std::string data_; | 72 std::string data_; |
74 | 73 |
75 // Original request URL. | 74 // Original request URL. |
76 GURL request_url_; | 75 GURL request_url_; |
77 | 76 |
78 private: | 77 private: |
79 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 78 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
80 }; | 79 }; |
81 | 80 |
82 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 81 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
OLD | NEW |