| Index: content/components/navigation_interception/intercept_navigation_resource_throttle.h
|
| diff --git a/content/components/navigation_interception/intercept_navigation_resource_throttle.h b/content/components/navigation_interception/intercept_navigation_resource_throttle.h
|
| deleted file mode 100644
|
| index cbff6014423764162b5ef3e49a90d3118ad10a3d..0000000000000000000000000000000000000000
|
| --- a/content/components/navigation_interception/intercept_navigation_resource_throttle.h
|
| +++ /dev/null
|
| @@ -1,62 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| -#define CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/callback.h"
|
| -#include "base/memory/weak_ptr.h"
|
| -#include "content/public/browser/resource_throttle.h"
|
| -#include "content/public/common/page_transition_types.h"
|
| -
|
| -class GURL;
|
| -
|
| -namespace content {
|
| -class RenderViewHost;
|
| -struct Referrer;
|
| -}
|
| -
|
| -namespace net {
|
| -class URLRequest;
|
| -}
|
| -
|
| -namespace content {
|
| -
|
| -// This class allows the provider of the Callback to selectively ignore top
|
| -// level navigations.
|
| -class InterceptNavigationResourceThrottle : public content::ResourceThrottle {
|
| - public:
|
| - typedef base::Callback<bool(content::RenderViewHost* /* source */,
|
| - const GURL& /* url */,
|
| - const content::Referrer& /*referrer*/,
|
| - bool /* is_post */,
|
| - bool /* has_user_gesture */,
|
| - PageTransition /* page transition type */)>
|
| - CheckOnUIThreadCallback;
|
| -
|
| - InterceptNavigationResourceThrottle(
|
| - net::URLRequest* request,
|
| - CheckOnUIThreadCallback should_ignore_callback);
|
| - virtual ~InterceptNavigationResourceThrottle();
|
| -
|
| - // content::ResourceThrottle implementation:
|
| - virtual void WillStartRequest(bool* defer) OVERRIDE;
|
| - virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE;
|
| -
|
| - private:
|
| - bool CheckIfShouldIgnoreNavigation(const GURL& url);
|
| - void OnResultObtained(bool should_ignore_navigation);
|
| -
|
| - net::URLRequest* request_;
|
| - CheckOnUIThreadCallback should_ignore_callback_;
|
| - base::WeakPtrFactory<InterceptNavigationResourceThrottle> weak_ptr_factory_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle);
|
| -};
|
| -
|
| -} // namespace content
|
| -
|
| -#endif // CONTENT_COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
|
|
|