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

Side by Side Diff: chrome_frame/npapi_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/external_tab.h ('k') | chrome_frame/plugin_url_request.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_NPAPI_URL_REQUEST_H_ 5 #ifndef CHROME_FRAME_NPAPI_URL_REQUEST_H_
6 #define CHROME_FRAME_NPAPI_URL_REQUEST_H_ 6 #define CHROME_FRAME_NPAPI_URL_REQUEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "chrome_frame/plugin_url_request.h" 11 #include "chrome_frame/plugin_url_request.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 typedef std::map<int, scoped_refptr<NPAPIUrlRequest> > RequestMap; 49 typedef std::map<int, scoped_refptr<NPAPIUrlRequest> > RequestMap;
50 RequestMap request_map_; 50 RequestMap request_map_;
51 51
52 scoped_refptr<NPAPIUrlRequest> LookupRequest(int request_id); 52 scoped_refptr<NPAPIUrlRequest> LookupRequest(int request_id);
53 53
54 // PluginUrlRequestDelegate implementation. Forwards back to delegate. 54 // PluginUrlRequestDelegate implementation. Forwards back to delegate.
55 virtual void OnResponseStarted(int request_id, const char* mime_type, 55 virtual void OnResponseStarted(int request_id, const char* mime_type,
56 const char* headers, int size, base::Time last_modified, 56 const char* headers, int size, base::Time last_modified,
57 const std::string& redirect_url, int redirect_status); 57 const std::string& redirect_url, int redirect_status);
58 virtual void OnReadComplete(int request_id, const std::string& data); 58 virtual void OnReadComplete(int request_id, const std::string& data);
59 virtual void OnResponseEnd(int request_id, const URLRequestStatus& status); 59 virtual void OnResponseEnd(int request_id,
60 const net::URLRequestStatus& status);
60 virtual void OnCookiesRetrieved(bool success, const GURL& url, 61 virtual void OnCookiesRetrieved(bool success, const GURL& url,
61 const std::string& cookie_string, int cookie_id); 62 const std::string& cookie_string, int cookie_id);
62 63
63 static inline NPAPIUrlRequest* RequestFromNotifyData(void* notify_data) { 64 static inline NPAPIUrlRequest* RequestFromNotifyData(void* notify_data) {
64 return reinterpret_cast<NPAPIUrlRequest*>(notify_data); 65 return reinterpret_cast<NPAPIUrlRequest*>(notify_data);
65 } 66 }
66 67
67 NPP instance_; 68 NPP instance_;
68 }; 69 };
69 70
70 #endif // CHROME_FRAME_NPAPI_URL_REQUEST_H_ 71 #endif // CHROME_FRAME_NPAPI_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome_frame/external_tab.h ('k') | chrome_frame/plugin_url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698