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

Side by Side Diff: components/navigation_interception/intercept_navigation_resource_throttle.cc

Issue 11830043: Move content/components/navigation_interception to src/components (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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
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 "content/components/navigation_interception/intercept_navigation_resour ce_throttle.h" 5 #include "components/navigation_interception/intercept_navigation_resource_throt tle.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/child_process_security_policy.h" 8 #include "content/public/browser/child_process_security_policy.h"
9 #include "content/public/browser/render_process_host.h"
9 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_process_host.h" 11 #include "content/public/browser/resource_controller.h"
11 #include "content/public/browser/resource_request_info.h" 12 #include "content/public/browser/resource_request_info.h"
12 #include "content/public/browser/resource_controller.h"
13 #include "content/public/common/page_transition_types.h" 13 #include "content/public/common/page_transition_types.h"
14 #include "content/public/common/referrer.h" 14 #include "content/public/common/referrer.h"
15 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 using content::ChildProcessSecurityPolicy; 18 using content::ChildProcessSecurityPolicy;
19 using content::PageTransition;
19 using content::Referrer; 20 using content::Referrer;
20 using content::RenderViewHost; 21 using content::RenderViewHost;
21 using content::ResourceRequestInfo; 22 using content::ResourceRequestInfo;
22 23
23 namespace content { 24 namespace components {
24 25
25 namespace { 26 namespace {
26 27
27 struct ShouldIgnoreCallbackParams { 28 struct ShouldIgnoreCallbackParams {
28 int render_process_id; 29 int render_process_id;
29 int render_view_id; 30 int render_view_id;
30 GURL url; 31 GURL url;
31 Referrer referrer; 32 Referrer referrer;
32 bool has_user_gesture; 33 bool has_user_gesture;
33 bool is_post; 34 bool is_post;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool should_ignore_navigation) { 128 bool should_ignore_navigation) {
128 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 129 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
129 130
130 if (should_ignore_navigation) { 131 if (should_ignore_navigation) {
131 controller()->CancelAndIgnore(); 132 controller()->CancelAndIgnore();
132 } else { 133 } else {
133 controller()->Resume(); 134 controller()->Resume();
134 } 135 }
135 } 136 }
136 137
137 } // namespace content 138 } // namespace components
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698