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

Side by Side Diff: webkit/plugins/ppapi/ppb_url_request_info_impl.h

Issue 6652014: Pepper: Add a property to URLRequestInfo to skip header validation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: used undefined var to unset Created 9 years, 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 virtual ~PPB_URLRequestInfo_Impl(); 28 virtual ~PPB_URLRequestInfo_Impl();
29 29
30 // Returns a pointer to the interface implementing PPB_URLRequestInfo that is 30 // Returns a pointer to the interface implementing PPB_URLRequestInfo that is
31 // exposed to the plugin. 31 // exposed to the plugin.
32 static const PPB_URLRequestInfo* GetInterface(); 32 static const PPB_URLRequestInfo* GetInterface();
33 33
34 // Resource overrides. 34 // Resource overrides.
35 virtual PPB_URLRequestInfo_Impl* AsPPB_URLRequestInfo_Impl(); 35 virtual PPB_URLRequestInfo_Impl* AsPPB_URLRequestInfo_Impl();
36 36
37 // PPB_URLRequestInfo implementation. 37 // PPB_URLRequestInfo implementation.
38 bool SetUndefinedProperty(PP_URLRequestProperty property);
38 bool SetBooleanProperty(PP_URLRequestProperty property, bool value); 39 bool SetBooleanProperty(PP_URLRequestProperty property, bool value);
39 bool SetStringProperty(PP_URLRequestProperty property, 40 bool SetStringProperty(PP_URLRequestProperty property,
40 const std::string& value); 41 const std::string& value);
41 bool AppendDataToBody(const std::string& data); 42 bool AppendDataToBody(const std::string& data);
42 bool AppendFileToBody(PPB_FileRef_Impl* file_ref, 43 bool AppendFileToBody(PPB_FileRef_Impl* file_ref,
43 int64_t start_offset, 44 int64_t start_offset,
44 int64_t number_of_bytes, 45 int64_t number_of_bytes,
45 PP_Time expected_last_modified_time); 46 PP_Time expected_last_modified_time);
46 47
47 WebKit::WebURLRequest ToWebURLRequest(WebKit::WebFrame* frame) const; 48 WebKit::WebURLRequest ToWebURLRequest(WebKit::WebFrame* frame) const;
48 49
50 // Whether universal access is required to use this request.
51 bool RequiresUniversalAccess() const;
52
49 bool follow_redirects() { return follow_redirects_; } 53 bool follow_redirects() { return follow_redirects_; }
50 54
51 bool record_download_progress() const { return record_download_progress_; } 55 bool record_download_progress() const { return record_download_progress_; }
52 bool record_upload_progress() const { return record_upload_progress_; } 56 bool record_upload_progress() const { return record_upload_progress_; }
53 57
54 private: 58 private:
55 struct BodyItem; 59 struct BodyItem;
56 typedef std::vector<BodyItem> Body; 60 typedef std::vector<BodyItem> Body;
57 61
58 std::string url_; 62 std::string url_;
59 std::string method_; 63 std::string method_;
60 std::string headers_; 64 std::string headers_;
61 Body body_; 65 Body body_;
62 66
63 bool stream_to_file_; 67 bool stream_to_file_;
64 bool follow_redirects_; 68 bool follow_redirects_;
65 bool record_download_progress_; 69 bool record_download_progress_;
66 bool record_upload_progress_; 70 bool record_upload_progress_;
67 71
72 bool has_custom_referrer_url_;
brettw 2011/03/11 23:31:05 Can you add a comment here about how the boolean d
viettrungluu 2011/03/14 17:13:53 Done.
73 std::string custom_referrer_url_;
74
68 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); 75 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl);
69 }; 76 };
70 77
71 } // namespace ppapi 78 } // namespace ppapi
72 } // namespace webkit 79 } // namespace webkit
73 80
74 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 81 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698