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

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

Issue 11293017: Move navigation interception component to content/components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add findbugs suppression for compatibility code. Created 8 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
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 "chrome/browser/component/navigation_interception/intercept_navigation_ resource_throttle.h" 5 #include "content/components/navigation_interception/intercept_navigation_resour ce_throttle.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_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
11 #include "content/public/browser/resource_request_info.h" 11 #include "content/public/browser/resource_request_info.h"
12 #include "content/public/browser/resource_controller.h" 12 #include "content/public/browser/resource_controller.h"
13 #include "content/public/common/referrer.h" 13 #include "content/public/common/referrer.h"
14 #include "net/url_request/url_request.h" 14 #include "net/url_request/url_request.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 using content::ChildProcessSecurityPolicy; 17 using content::ChildProcessSecurityPolicy;
18 using content::Referrer; 18 using content::Referrer;
19 using content::RenderViewHost; 19 using content::RenderViewHost;
20 using content::ResourceRequestInfo; 20 using content::ResourceRequestInfo;
21 21
22 namespace navigation_interception { 22 namespace content {
23 23
24 namespace { 24 namespace {
25 25
26 void CheckIfShouldIgnoreNavigationOnUIThread( 26 void CheckIfShouldIgnoreNavigationOnUIThread(
27 int render_process_id, 27 int render_process_id,
28 int render_view_id, 28 int render_view_id,
29 const GURL& url, 29 const GURL& url,
30 const Referrer& referrer, 30 const Referrer& referrer,
31 bool has_user_gesture, 31 bool has_user_gesture,
32 InterceptNavigationResourceThrottle::CheckOnUIThreadCallback 32 InterceptNavigationResourceThrottle::CheckOnUIThreadCallback
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool should_ignore_navigation) { 112 bool should_ignore_navigation) {
113 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 113 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
114 114
115 if (should_ignore_navigation) { 115 if (should_ignore_navigation) {
116 controller()->CancelAndIgnore(); 116 controller()->CancelAndIgnore();
117 } else { 117 } else {
118 controller()->Resume(); 118 controller()->Resume();
119 } 119 }
120 } 120 }
121 121
122 } // namespace navigation_interception 122 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698