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

Side by Side Diff: chrome_frame/plugin_url_request.h

Issue 102763005: Remove the ChromeFrame specific cookie code between the renderer and browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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
« no previous file with comments | « chrome_frame/chrome_frame_delegate.cc ('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) 2011 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
(...skipping 18 matching lines...) Expand all
29 int request_id, const char* mime_type, const char* headers, int size, 29 int request_id, const char* mime_type, const char* headers, int size,
30 base::Time last_modified, const std::string& redirect_url, 30 base::Time last_modified, const std::string& redirect_url,
31 int redirect_status, const net::HostPortPair& socket_address, 31 int redirect_status, const net::HostPortPair& socket_address,
32 uint64 upload_size) = 0; 32 uint64 upload_size) = 0;
33 virtual void OnReadComplete(int request_id, const std::string& data) = 0; 33 virtual void OnReadComplete(int request_id, const std::string& data) = 0;
34 virtual void OnResponseEnd(int request_id, 34 virtual void OnResponseEnd(int request_id,
35 const net::URLRequestStatus& status) = 0; 35 const net::URLRequestStatus& status) = 0;
36 virtual void AddPrivacyDataForUrl(const std::string& url, 36 virtual void AddPrivacyDataForUrl(const std::string& url,
37 const std::string& policy_ref, 37 const std::string& policy_ref,
38 int32 flags) {} 38 int32 flags) {}
39 virtual void OnCookiesRetrieved(bool success, const GURL& url,
40 const std::string& cookie_string,
41 int cookie_id) = 0;
42 protected: 39 protected:
43 PluginUrlRequestDelegate() {} 40 PluginUrlRequestDelegate() {}
44 ~PluginUrlRequestDelegate() {} 41 ~PluginUrlRequestDelegate() {}
45 }; 42 };
46 43
47 class DECLSPEC_NOVTABLE PluginUrlRequestManager { // NOLINT 44 class DECLSPEC_NOVTABLE PluginUrlRequestManager { // NOLINT
48 public: 45 public:
49 PluginUrlRequestManager() : delegate_(NULL), enable_frame_busting_(true) {} 46 PluginUrlRequestManager() : delegate_(NULL), enable_frame_busting_(true) {}
50 virtual ~PluginUrlRequestManager() {} 47 virtual ~PluginUrlRequestManager() {}
51 48
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 82 }
86 83
87 void DownloadUrlRequestInHost(int request_id) { 84 void DownloadUrlRequestInHost(int request_id) {
88 DownloadRequestInHost(request_id); 85 DownloadRequestInHost(request_id);
89 } 86 }
90 87
91 void StopAllRequests() { 88 void StopAllRequests() {
92 StopAll(); 89 StopAll();
93 } 90 }
94 91
95 void GetCookiesFromHost(const GURL& url, int cookie_id) {
96 GetCookiesForUrl(url, cookie_id);
97 }
98
99 void SetCookiesInHost(const GURL& url, const std::string& cookie) {
100 SetCookiesForUrl(url, cookie);
101 }
102
103 protected: 92 protected:
104 PluginUrlRequestDelegate* delegate_; 93 PluginUrlRequestDelegate* delegate_;
105 bool enable_frame_busting_; 94 bool enable_frame_busting_;
106 95
107 private: 96 private:
108 virtual void StartRequest( 97 virtual void StartRequest(
109 int request_id, const AutomationURLRequest& request_info) = 0; 98 int request_id, const AutomationURLRequest& request_info) = 0;
110 virtual void ReadRequest(int request_id, int bytes_to_read) = 0; 99 virtual void ReadRequest(int request_id, int bytes_to_read) = 0;
111 virtual void EndRequest(int request_id) = 0; 100 virtual void EndRequest(int request_id) = 0;
112 virtual void DownloadRequestInHost(int request_id) = 0; 101 virtual void DownloadRequestInHost(int request_id) = 0;
113 virtual void StopAll() = 0; 102 virtual void StopAll() = 0;
114 virtual void GetCookiesForUrl(const GURL& url, int cookie_id) = 0;
115 virtual void SetCookiesForUrl(const GURL& url, const std::string& cookie) = 0;
116 }; 103 };
117 104
118 // Used as base class. Holds Url request properties (url, method, referrer..) 105 // Used as base class. Holds Url request properties (url, method, referrer..)
119 class PluginUrlRequest { 106 class PluginUrlRequest {
120 public: 107 public:
121 PluginUrlRequest(); 108 PluginUrlRequest();
122 ~PluginUrlRequest(); 109 ~PluginUrlRequest();
123 110
124 bool Initialize(PluginUrlRequestDelegate* delegate, 111 bool Initialize(PluginUrlRequestDelegate* delegate,
125 int remote_request_id, const std::string& url, const std::string& method, 112 int remote_request_id, const std::string& url, const std::string& method,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 std::string extra_headers_; 169 std::string extra_headers_;
183 ResourceType::Type resource_type_; 170 ResourceType::Type resource_type_;
184 int load_flags_; 171 int load_flags_;
185 base::win::ScopedComPtr<IStream> upload_data_; 172 base::win::ScopedComPtr<IStream> upload_data_;
186 bool is_chunked_upload_; 173 bool is_chunked_upload_;
187 // Contains the ip address and port of the destination host. 174 // Contains the ip address and port of the destination host.
188 net::HostPortPair socket_address_; 175 net::HostPortPair socket_address_;
189 }; 176 };
190 177
191 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ 178 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_delegate.cc ('k') | chrome_frame/test/automation_client_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698