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

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

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" 5 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "googleurl/src/url_util.h" 10 #include "googleurl/src/url_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000; 43 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000;
44 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000; 44 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000;
45 45
46 } // namespace 46 } // namespace
47 47
48 48
49 PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl( 49 PPB_URLRequestInfo_Impl::PPB_URLRequestInfo_Impl(
50 PP_Instance instance, 50 PP_Instance instance,
51 const PPB_URLRequestInfo_Data& data) 51 const PPB_URLRequestInfo_Data& data)
52 : PPB_URLRequestInfo_Shared(instance, data) { 52 : PPB_URLRequestInfo_Shared(::ppapi::OBJECT_IS_IMPL, instance, data) {
53 } 53 }
54 54
55 PPB_URLRequestInfo_Impl::~PPB_URLRequestInfo_Impl() { 55 PPB_URLRequestInfo_Impl::~PPB_URLRequestInfo_Impl() {
56 } 56 }
57 57
58 bool PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame, 58 bool PPB_URLRequestInfo_Impl::ToWebURLRequest(WebFrame* frame,
59 WebURLRequest* dest) { 59 WebURLRequest* dest) {
60 // In the out-of-process case, we've received the PPB_URLRequestInfo_Data 60 // In the out-of-process case, we've received the PPB_URLRequestInfo_Data
61 // from the untrusted plugin and done no validation on it. We need to be 61 // from the untrusted plugin and done no validation on it. We need to be
62 // sure it's not being malicious by checking everything for consistency. 62 // sure it's not being malicious by checking everything for consistency.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 webkit_glue::FilePathToWebString(platform_path), 191 webkit_glue::FilePathToWebString(platform_path),
192 start_offset, 192 start_offset,
193 number_of_bytes, 193 number_of_bytes,
194 expected_last_modified_time); 194 expected_last_modified_time);
195 return true; 195 return true;
196 } 196 }
197 197
198 198
199 } // namespace ppapi 199 } // namespace ppapi
200 } // namespace webkit 200 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698