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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Loads message catalogs, and replaces all __MSG_some_name__ templates within | 56 // Loads message catalogs, and replaces all __MSG_some_name__ templates within |
57 // loaded file. | 57 // loaded file. |
58 void ReplaceMessages(); | 58 void ReplaceMessages(); |
59 | 59 |
60 // Original peer that handles the request once we are done processing data_. | 60 // Original peer that handles the request once we are done processing data_. |
61 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; | 61 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; |
62 | 62 |
63 // We just pass though the response info. This holds the copy of the original. | 63 // We just pass though the response info. This holds the copy of the original. |
64 webkit_glue::ResourceResponseInfo response_info_; | 64 webkit_glue::ResourceResponseInfo response_info_; |
65 | 65 |
66 // Sends ViewHostMsg_GetExtensionMessageBundle message to the browser to fetch | 66 // Sends ExtensionHostMsg_GetMessageBundle message to the browser to fetch |
67 // message catalog. | 67 // message catalog. |
68 IPC::Message::Sender* message_sender_; | 68 IPC::Message::Sender* message_sender_; |
69 | 69 |
70 // Buffer for incoming data. We wait until OnCompletedRequest before using it. | 70 // Buffer for incoming data. We wait until OnCompletedRequest before using it. |
71 std::string data_; | 71 std::string data_; |
72 | 72 |
73 // Original request URL. | 73 // Original request URL. |
74 GURL request_url_; | 74 GURL request_url_; |
75 | 75 |
76 private: | 76 private: |
77 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); | 77 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); |
78 }; | 78 }; |
79 | 79 |
80 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ | 80 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ |
OLD | NEW |