Re-enable index-basics-workers test to see if still times
[chromium-blink-merge.git] / content / public / browser / resource_controller.h
blobe18d0ae0166516e4bac086c11e5d252271d07c91
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
8 #include "content/common/content_export.h"
10 namespace content {
12 // Used to either resume a deferred resource load or cancel a resource load at
13 // any time. CancelAndIgnore is a variation of Cancel that also causes the
14 // requester of the resource to act like the request was never made. By
15 // default, load is cancelled with ERR_ABORTED code. CancelWithError can be used
16 // to cancel load with any other error code.
17 class CONTENT_EXPORT ResourceController {
18 public:
19 virtual void Cancel() = 0;
20 virtual void CancelAndIgnore() = 0;
21 virtual void CancelWithError(int error_code) = 0;
22 virtual void Resume() = 0;
23 protected:
24 virtual ~ResourceController() {}
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_