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

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

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 #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 "content/public/child/request_peer.h" 10 #include "content/public/child/request_peer.h"
(...skipping 16 matching lines...) Expand all
27 27
28 static ExtensionLocalizationPeer* CreateExtensionLocalizationPeer( 28 static ExtensionLocalizationPeer* CreateExtensionLocalizationPeer(
29 content::RequestPeer* peer, 29 content::RequestPeer* peer,
30 IPC::Sender* message_sender, 30 IPC::Sender* message_sender,
31 const std::string& mime_type, 31 const std::string& mime_type,
32 const GURL& request_url); 32 const GURL& request_url);
33 33
34 // content::RequestPeer methods. 34 // content::RequestPeer methods.
35 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; 35 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
36 virtual bool OnReceivedRedirect( 36 virtual bool OnReceivedRedirect(
37 const GURL& new_url, 37 const net::RedirectInfo& redirect_info,
38 const GURL& new_first_party_for_cookies,
39 const content::ResourceResponseInfo& info) OVERRIDE; 38 const content::ResourceResponseInfo& info) OVERRIDE;
40 virtual void OnReceivedResponse( 39 virtual void OnReceivedResponse(
41 const content::ResourceResponseInfo& info) OVERRIDE; 40 const content::ResourceResponseInfo& info) OVERRIDE;
42 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} 41 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {}
43 virtual void OnReceivedData(const char* data, 42 virtual void OnReceivedData(const char* data,
44 int data_length, 43 int data_length,
45 int encoded_data_length) OVERRIDE; 44 int encoded_data_length) OVERRIDE;
46 virtual void OnCompletedRequest(int error_code, 45 virtual void OnCompletedRequest(int error_code,
47 bool was_ignored_by_handler, 46 bool was_ignored_by_handler,
48 bool stale_copy_in_cache, 47 bool stale_copy_in_cache,
(...skipping 27 matching lines...) Expand all
76 std::string data_; 75 std::string data_;
77 76
78 // Original request URL. 77 // Original request URL.
79 GURL request_url_; 78 GURL request_url_;
80 79
81 private: 80 private:
82 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); 81 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer);
83 }; 82 };
84 83
85 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ 84 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_tracker_unittest.cc ('k') | chrome/renderer/extensions/extension_localization_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698