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

Side by Side Diff: content/public/browser/resource_controller.h

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase + fix nits Created 8 years, 3 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 unified diff | Download patch
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/browser/resource_request_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // Used to either resume a deferred resource load or cancel a resource load at 10 // Used to either resume a deferred resource load or cancel a resource load at
11 // any time. 11 // any time. CancelAndIgnore is a variation of Cancel that also causes the
12 // requester of the resource to act like the request was never made.
12 class ResourceController { 13 class ResourceController {
13 public: 14 public:
14 virtual void Cancel() = 0; 15 virtual void Cancel() = 0;
16 virtual void CancelAndIgnore() = 0;
15 virtual void Resume() = 0; 17 virtual void Resume() = 0;
16 protected: 18 protected:
17 virtual ~ResourceController() {} 19 virtual ~ResourceController() {}
18 }; 20 };
19 21
20 } // namespace content 22 } // namespace content
21 23
22 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_ 24 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/browser/resource_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698