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

Unified Diff: chrome/browser/renderer_host/offline_resource_throttle.h

Issue 1237353002: Remove Old ChromeOS Offline Error Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/offline_resource_throttle.h
diff --git a/chrome/browser/renderer_host/offline_resource_throttle.h b/chrome/browser/renderer_host/offline_resource_throttle.h
deleted file mode 100644
index 48cb556aa67a9ebd80faa2b46b88ba9988121ad5..0000000000000000000000000000000000000000
--- a/chrome/browser/renderer_host/offline_resource_throttle.h
+++ /dev/null
@@ -1,52 +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 CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_
-#define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/chromeos/offline/offline_load_page.h"
-#include "content/public/browser/resource_throttle.h"
-#include "net/base/completion_callback.h"
-
-namespace content {
-class AppCacheService;
-}
-
-namespace net {
-class URLRequest;
-}
-// Used to show an offline interstitial page when the network is not available.
-class OfflineResourceThrottle
- : public content::ResourceThrottle,
- public base::SupportsWeakPtr<OfflineResourceThrottle> {
- public:
- OfflineResourceThrottle(net::URLRequest* request,
- content::AppCacheService* appcache_service);
- ~OfflineResourceThrottle() override;
-
- // content::ResourceThrottle implementation:
- void WillStartRequest(bool* defer) override;
- const char* GetNameForLogging() const override;
-
- private:
- void OnBlockingPageComplete(bool proceed);
- void ClearRequestInfo();
- bool IsRemote(const GURL& url) const;
- bool ShouldShowOfflinePage(const GURL& url) const;
- void OnCanHandleOfflineComplete(int rv);
-
- net::URLRequest* request_;
- // Safe to keep a pointer around since AppCacheService outlives all requests.
- content::AppCacheService* appcache_service_;
- net::CancelableCompletionCallback completion_callback_;
- int pending_callbacks_;
-
- DISALLOW_COPY_AND_ASSIGN(OfflineResourceThrottle);
-};
-
-#endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_

Powered by Google App Engine
This is Rietveld 408576698