Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/common/extensions/extension_localization_peer.h

Issue 6735004: Move extension messages to their own file and add a RenderViewObserver to start moving the extens... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/extensions/extension_localization_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698