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

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

Issue 216913002: Extract SyncLoadResponse struct from ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome fixes Created 6 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
« no previous file with comments | « no previous file | chrome/renderer/security_filter_peer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "webkit/child/resource_loader_bridge.h" 11 #include "webkit/child/resource_loader_bridge.h"
12 #include "webkit/common/resource_response_info.h"
12 13
13 // The ExtensionLocalizationPeer is a proxy to a 14 // The ExtensionLocalizationPeer is a proxy to a
14 // webkit_glue::ResourceLoaderBridge::Peer instance. It is used to pre-process 15 // webkit_glue::ResourceLoaderBridge::Peer instance. It is used to pre-process
15 // CSS files requested by extensions to replace localization templates with the 16 // CSS files requested by extensions to replace localization templates with the
16 // appropriate localized strings. 17 // appropriate localized strings.
17 // 18 //
18 // Call the factory method CreateExtensionLocalizationPeer() to obtain an 19 // Call the factory method CreateExtensionLocalizationPeer() to obtain an
19 // instance of ExtensionLocalizationPeer based on the original Peer. 20 // instance of ExtensionLocalizationPeer based on the original Peer.
20 class ExtensionLocalizationPeer 21 class ExtensionLocalizationPeer
21 : public webkit_glue::ResourceLoaderBridge::Peer { 22 : public webkit_glue::ResourceLoaderBridge::Peer {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 std::string data_; 77 std::string data_;
77 78
78 // Original request URL. 79 // Original request URL.
79 GURL request_url_; 80 GURL request_url_;
80 81
81 private: 82 private:
82 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); 83 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer);
83 }; 84 };
84 85
85 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ 86 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/security_filter_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698