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

Side by Side Diff: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc

Issue 51683002: [Net] Assert that URLRequests with LOAD_IGNORE_LIMITS have MAXIMUM_PRIORITY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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 | « no previous file | chrome/browser/net/chrome_fraudulent_certificate_reporter.cc » ('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) 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 "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h" 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "android_webview/browser/aw_contents_io_thread_client.h" 9 #include "android_webview/browser/aw_contents_io_thread_client.h"
10 #include "android_webview/browser/aw_login_delegate.h" 10 #include "android_webview/browser/aw_login_delegate.h"
(...skipping 25 matching lines...) Expand all
36 void SetCacheControlFlag( 36 void SetCacheControlFlag(
37 net::URLRequest* request, int flag) { 37 net::URLRequest* request, int flag) {
38 const int all_cache_control_flags = net::LOAD_BYPASS_CACHE | 38 const int all_cache_control_flags = net::LOAD_BYPASS_CACHE |
39 net::LOAD_VALIDATE_CACHE | 39 net::LOAD_VALIDATE_CACHE |
40 net::LOAD_PREFERRING_CACHE | 40 net::LOAD_PREFERRING_CACHE |
41 net::LOAD_ONLY_FROM_CACHE; 41 net::LOAD_ONLY_FROM_CACHE;
42 DCHECK((flag & all_cache_control_flags) == flag); 42 DCHECK((flag & all_cache_control_flags) == flag);
43 int load_flags = request->load_flags(); 43 int load_flags = request->load_flags();
44 load_flags &= ~all_cache_control_flags; 44 load_flags &= ~all_cache_control_flags;
45 load_flags |= flag; 45 load_flags |= flag;
46 request->set_load_flags(load_flags); 46 request->SetLoadFlags(load_flags);
47 } 47 }
48 48
49 } // namespace 49 } // namespace
50 50
51 namespace android_webview { 51 namespace android_webview {
52 52
53 // Calls through the IoThreadClient to check the embedders settings to determine 53 // Calls through the IoThreadClient to check the embedders settings to determine
54 // if the request should be cancelled. There may not always be an IoThreadClient 54 // if the request should be cancelled. There may not always be an IoThreadClient
55 // available for the |child_id|, |route_id| pair (in the case of newly created 55 // available for the |child_id|, |route_id| pair (in the case of newly created
56 // pop up windows, for example) and in that case the request and the client 56 // pop up windows, for example) and in that case the request and the client
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 ChildRouteIDPair(new_child_id, new_route_id)); 401 ChildRouteIDPair(new_child_id, new_route_id));
402 402
403 if (it != pending_throttles_.end()) { 403 if (it != pending_throttles_.end()) {
404 IoThreadClientThrottle* throttle = it->second; 404 IoThreadClientThrottle* throttle = it->second;
405 throttle->OnIoThreadClientReady(new_child_id, new_route_id); 405 throttle->OnIoThreadClientReady(new_child_id, new_route_id);
406 pending_throttles_.erase(it); 406 pending_throttles_.erase(it);
407 } 407 }
408 } 408 }
409 409
410 } // namespace android_webview 410 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_fraudulent_certificate_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698