| Index: chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h
|
| diff --git a/chrome/browser/renderer_host/intercept_navigation_resource_throttle.h b/chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h
|
| similarity index 77%
|
| rename from chrome/browser/renderer_host/intercept_navigation_resource_throttle.h
|
| rename to chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h
|
| index 9425e9305a8907035941b84d3d48868e773bae6e..b8076633c1f9f3d8f580ae90ecd6dac5a3323927 100644
|
| --- a/chrome/browser/renderer_host/intercept_navigation_resource_throttle.h
|
| +++ b/chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_RENDERER_HOST_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| -#define CHROME_BROWSER_RENDERER_HOST_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| +#ifndef CHROME_BROWSER_COMPONENT_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| +#define CHROME_BROWSER_COMPONENT_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
|
|
| #include <string>
|
|
|
| @@ -22,6 +22,8 @@ namespace net {
|
| class URLRequest;
|
| }
|
|
|
| +namespace navigation_interception {
|
| +
|
| // This class allows the provider of the Callback to selectively ignore top
|
| // level navigations.
|
| class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
|
| @@ -29,7 +31,7 @@ class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
|
| typedef base::Callback<bool(content::RenderViewHost* /* source */,
|
| const GURL& /*url*/,
|
| const content::Referrer& /*referrer*/,
|
| - bool /*is_content_initiated*/)>
|
| + bool /*has_user_gesture*/)>
|
| CheckOnUIThreadCallback;
|
|
|
| InterceptNavigationResourceThrottle(
|
| @@ -52,4 +54,6 @@ class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
|
| DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_RENDERER_HOST_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| +} // namespace navigation_interception
|
| +
|
| +#endif // CHROME_BROWSER_COMPONENT_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
|
|