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

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

Issue 1103813002: Make WebURLLoader capable of retaining received buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 19 matching lines...) Expand all
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 void OnUploadProgress(uint64 position, uint64 size) override; 35 void OnUploadProgress(uint64 position, uint64 size) override;
36 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, 36 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
37 const content::ResourceResponseInfo& info) override; 37 const content::ResourceResponseInfo& info) override;
38 void OnReceivedResponse(const content::ResourceResponseInfo& info) override; 38 void OnReceivedResponse(const content::ResourceResponseInfo& info) override;
39 void OnDownloadedData(int len, int encoded_data_length) override {} 39 void OnDownloadedData(int len, int encoded_data_length) override {}
40 void OnReceivedData(const char* data, 40 void OnReceivedData(scoped_ptr<ReceivedData> data) override;
41 int data_length,
42 int encoded_data_length) override;
43 void OnCompletedRequest(int error_code, 41 void OnCompletedRequest(int error_code,
44 bool was_ignored_by_handler, 42 bool was_ignored_by_handler,
45 bool stale_copy_in_cache, 43 bool stale_copy_in_cache,
46 const std::string& security_info, 44 const std::string& security_info,
47 const base::TimeTicks& completion_time, 45 const base::TimeTicks& completion_time,
48 int64 total_transfer_size) override; 46 int64 total_transfer_size) override;
49 47
50 private: 48 private:
51 friend class ExtensionLocalizationPeerTest; 49 friend class ExtensionLocalizationPeerTest;
52 50
(...skipping 20 matching lines...) Expand all
73 std::string data_; 71 std::string data_;
74 72
75 // Original request URL. 73 // Original request URL.
76 GURL request_url_; 74 GURL request_url_;
77 75
78 private: 76 private:
79 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer); 77 DISALLOW_COPY_AND_ASSIGN(ExtensionLocalizationPeer);
80 }; 78 };
81 79
82 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_ 80 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_LOCALIZATION_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698