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

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

Issue 264613006: Move first-party cookie URL logic to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 30 matching lines...) Expand all
41 new ExtensionLocalizationPeer(peer, message_sender, request_url) : NULL; 41 new ExtensionLocalizationPeer(peer, message_sender, request_url) : NULL;
42 } 42 }
43 43
44 void ExtensionLocalizationPeer::OnUploadProgress( 44 void ExtensionLocalizationPeer::OnUploadProgress(
45 uint64 position, uint64 size) { 45 uint64 position, uint64 size) {
46 NOTREACHED(); 46 NOTREACHED();
47 } 47 }
48 48
49 bool ExtensionLocalizationPeer::OnReceivedRedirect( 49 bool ExtensionLocalizationPeer::OnReceivedRedirect(
50 const GURL& new_url, 50 const GURL& new_url,
51 const webkit_glue::ResourceResponseInfo& info, 51 const GURL& new_first_party_for_cookies,
52 bool* has_new_first_party_for_cookies, 52 const webkit_glue::ResourceResponseInfo& info) {
53 GURL* new_first_party_for_cookies) {
54 NOTREACHED(); 53 NOTREACHED();
55 return false; 54 return false;
56 } 55 }
57 56
58 void ExtensionLocalizationPeer::OnReceivedResponse( 57 void ExtensionLocalizationPeer::OnReceivedResponse(
59 const webkit_glue::ResourceResponseInfo& info) { 58 const webkit_glue::ResourceResponseInfo& info) {
60 response_info_ = info; 59 response_info_ = info;
61 } 60 }
62 61
63 void ExtensionLocalizationPeer::OnReceivedData(const char* data, 62 void ExtensionLocalizationPeer::OnReceivedData(const char* data,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 122
124 l10n_messages = extensions::GetL10nMessagesMap(extension_id); 123 l10n_messages = extensions::GetL10nMessagesMap(extension_id);
125 } 124 }
126 125
127 std::string error; 126 std::string error;
128 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary( 127 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary(
129 *l10n_messages, &data_, &error)) { 128 *l10n_messages, &data_, &error)) {
130 data_.resize(data_.size()); 129 data_.resize(data_.size());
131 } 130 }
132 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698