Chromium Code Reviews| OLD | NEW |
|---|---|
| 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. |
| 12 class ResourceController { | 12 class ResourceController { |
| 13 public: | 13 public: |
| 14 virtual void Cancel() = 0; | 14 virtual void Cancel() = 0; |
| 15 virtual void CancelWithError(int error) = 0; | |
|
darin (slow to review)
2012/08/10 18:03:02
It looks like we don't need CancelWithError since
mkosiba (inactive)
2012/08/29 15:53:01
Done.
| |
| 16 virtual void HandledExternally() = 0; | |
|
darin (slow to review)
2012/08/10 18:03:02
This doesn't seem like the best name for this func
mkosiba (inactive)
2012/08/29 15:53:01
Ok, will go with CancelAndIgnore.
| |
| 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_ |
| OLD | NEW |