| Index: chrome/browser/android/intercept_download_resource_throttle.h
|
| diff --git a/chrome/browser/android/intercept_download_resource_throttle.h b/chrome/browser/android/intercept_download_resource_throttle.h
|
| deleted file mode 100644
|
| index 620f58c70b21df02f92e2aeca6df3a673da193c7..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/android/intercept_download_resource_throttle.h
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -// Copyright 2013 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 CHROME_BROWSER_ANDROID_INTERCEPT_DOWNLOAD_RESOURCE_THROTTLE_H_
|
| -#define CHROME_BROWSER_ANDROID_INTERCEPT_DOWNLOAD_RESOURCE_THROTTLE_H_
|
| -
|
| -#include "base/memory/weak_ptr.h"
|
| -#include "chrome/browser/android/download/download_controller_base.h"
|
| -#include "content/public/browser/resource_request_info.h"
|
| -#include "content/public/browser/resource_throttle.h"
|
| -#include "net/cookies/cookie_store.h"
|
| -
|
| -namespace net {
|
| -class URLRequest;
|
| -}
|
| -
|
| -namespace chrome {
|
| -
|
| -// InterceptDownloadResourceThrottle checks if a download request should be
|
| -// handled by Chrome or passsed to the Android Download Manager.
|
| -class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
|
| - public:
|
| - static bool IsDownloadInterceptionEnabled();
|
| -
|
| - InterceptDownloadResourceThrottle(
|
| - net::URLRequest* request,
|
| - const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
|
| - bool must_download);
|
| -
|
| - // content::ResourceThrottle implementation:
|
| - void WillProcessResponse(bool* defer) override;
|
| - const char* GetNameForLogging() const override;
|
| -
|
| - private:
|
| - ~InterceptDownloadResourceThrottle() override;
|
| -
|
| - void ProcessDownloadRequest(bool* defer);
|
| - void CheckCookiePolicy(const net::CookieList& cookie_list);
|
| - void StartDownload(const DownloadInfo& info);
|
| -
|
| - // Set to true when if we want chrome to handle the download.
|
| - const net::URLRequest* request_;
|
| - content::ResourceRequestInfo::WebContentsGetter wc_getter_;
|
| - bool must_download_;
|
| -
|
| - base::WeakPtrFactory<InterceptDownloadResourceThrottle> weak_factory_;
|
| - DISALLOW_COPY_AND_ASSIGN(InterceptDownloadResourceThrottle);
|
| -};
|
| -
|
| -} // namespace chrome
|
| -
|
| -#endif // CHROME_BROWSER_ANDROID_INTERCEPT_DOWNLOAD_RESOURCE_THROTTLE_H_
|
|
|