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

Side by Side Diff: chrome_frame/plugin_url_request.h

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 11 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
« no previous file with comments | « chrome_frame/npapi_url_request.h ('k') | chrome_frame/test/automation_client_mock.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FRAME_PLUGIN_URL_REQUEST_H_ 5 #ifndef CHROME_FRAME_PLUGIN_URL_REQUEST_H_
6 #define CHROME_FRAME_PLUGIN_URL_REQUEST_H_ 6 #define CHROME_FRAME_PLUGIN_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
(...skipping 10 matching lines...) Expand all
22 class PluginUrlRequestDelegate; 22 class PluginUrlRequestDelegate;
23 class PluginUrlRequestManager; 23 class PluginUrlRequestManager;
24 24
25 class DECLSPEC_NOVTABLE PluginUrlRequestDelegate { // NOLINT 25 class DECLSPEC_NOVTABLE PluginUrlRequestDelegate { // NOLINT
26 public: 26 public:
27 virtual void OnResponseStarted(int request_id, const char* mime_type, 27 virtual void OnResponseStarted(int request_id, const char* mime_type,
28 const char* headers, int size, base::Time last_modified, 28 const char* headers, int size, base::Time last_modified,
29 const std::string& redirect_url, int redirect_status) = 0; 29 const std::string& redirect_url, int redirect_status) = 0;
30 virtual void OnReadComplete(int request_id, const std::string& data) = 0; 30 virtual void OnReadComplete(int request_id, const std::string& data) = 0;
31 virtual void OnResponseEnd(int request_id, 31 virtual void OnResponseEnd(int request_id,
32 const URLRequestStatus& status) = 0; 32 const net::URLRequestStatus& status) = 0;
33 virtual void AddPrivacyDataForUrl(const std::string& url, 33 virtual void AddPrivacyDataForUrl(const std::string& url,
34 const std::string& policy_ref, 34 const std::string& policy_ref,
35 int32 flags) {} 35 int32 flags) {}
36 virtual void OnCookiesRetrieved(bool success, const GURL& url, 36 virtual void OnCookiesRetrieved(bool success, const GURL& url,
37 const std::string& cookie_string, 37 const std::string& cookie_string,
38 int cookie_id) = 0; 38 int cookie_id) = 0;
39 protected: 39 protected:
40 PluginUrlRequestDelegate() {} 40 PluginUrlRequestDelegate() {}
41 ~PluginUrlRequestDelegate() {} 41 ~PluginUrlRequestDelegate() {}
42 }; 42 };
(...skipping 27 matching lines...) Expand all
70 // derived classes. 70 // derived classes.
71 void StartUrlRequest(int request_id, 71 void StartUrlRequest(int request_id,
72 const AutomationURLRequest& request_info) { 72 const AutomationURLRequest& request_info) {
73 StartRequest(request_id, request_info); 73 StartRequest(request_id, request_info);
74 } 74 }
75 75
76 void ReadUrlRequest(int request_id, int bytes_to_read) { 76 void ReadUrlRequest(int request_id, int bytes_to_read) {
77 ReadRequest(request_id, bytes_to_read); 77 ReadRequest(request_id, bytes_to_read);
78 } 78 }
79 79
80 void EndUrlRequest(int request_id, const URLRequestStatus& s) { 80 void EndUrlRequest(int request_id, const net::URLRequestStatus& s) {
81 EndRequest(request_id); 81 EndRequest(request_id);
82 } 82 }
83 83
84 void DownloadUrlRequestInHost(int request_id) { 84 void DownloadUrlRequestInHost(int request_id) {
85 DownloadRequestInHost(request_id); 85 DownloadRequestInHost(request_id);
86 } 86 }
87 87
88 void StopAllRequests() { 88 void StopAllRequests() {
89 StopAll(); 89 StopAll();
90 } 90 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 std::string url_; 177 std::string url_;
178 std::string method_; 178 std::string method_;
179 std::string referrer_; 179 std::string referrer_;
180 std::string extra_headers_; 180 std::string extra_headers_;
181 ResourceType::Type resource_type_; 181 ResourceType::Type resource_type_;
182 int load_flags_; 182 int load_flags_;
183 ScopedComPtr<IStream> upload_data_; 183 ScopedComPtr<IStream> upload_data_;
184 }; 184 };
185 185
186 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ 186 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome_frame/npapi_url_request.h ('k') | chrome_frame/test/automation_client_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698