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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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 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 #include "chrome/renderer/extensions/extension_localization_peer.h" 5 #include "chrome/renderer/extensions/extension_localization_peer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "extensions/common/constants.h" 10 #include "extensions/common/constants.h"
(...skipping 28 matching lines...) Expand all
39 StartsWithASCII(mime_type, "text/css", false)) ? 39 StartsWithASCII(mime_type, "text/css", false)) ?
40 new ExtensionLocalizationPeer(peer, message_sender, request_url) : NULL; 40 new ExtensionLocalizationPeer(peer, message_sender, request_url) : NULL;
41 } 41 }
42 42
43 void ExtensionLocalizationPeer::OnUploadProgress( 43 void ExtensionLocalizationPeer::OnUploadProgress(
44 uint64 position, uint64 size) { 44 uint64 position, uint64 size) {
45 NOTREACHED(); 45 NOTREACHED();
46 } 46 }
47 47
48 bool ExtensionLocalizationPeer::OnReceivedRedirect( 48 bool ExtensionLocalizationPeer::OnReceivedRedirect(
49 const GURL& new_url, 49 const net::RedirectInfo& redirect_info,
50 const GURL& new_first_party_for_cookies,
51 const content::ResourceResponseInfo& info) { 50 const content::ResourceResponseInfo& info) {
52 NOTREACHED(); 51 NOTREACHED();
53 return false; 52 return false;
54 } 53 }
55 54
56 void ExtensionLocalizationPeer::OnReceivedResponse( 55 void ExtensionLocalizationPeer::OnReceivedResponse(
57 const content::ResourceResponseInfo& info) { 56 const content::ResourceResponseInfo& info) {
58 response_info_ = info; 57 response_info_ = info;
59 } 58 }
60 59
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 120
122 l10n_messages = extensions::GetL10nMessagesMap(extension_id); 121 l10n_messages = extensions::GetL10nMessagesMap(extension_id);
123 } 122 }
124 123
125 std::string error; 124 std::string error;
126 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary( 125 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary(
127 *l10n_messages, &data_, &error)) { 126 *l10n_messages, &data_, &error)) {
128 data_.resize(data_.size()); 127 data_.resize(data_.size());
129 } 128 }
130 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698